|
@@ -38,9 +38,11 @@ const emit = defineEmits(['success'])
|
|
const props = withDefaults(
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
defineProps<{
|
|
version: string
|
|
version: string
|
|
|
|
+ clintId: string
|
|
}>(),
|
|
}>(),
|
|
{
|
|
{
|
|
version: '',
|
|
version: '',
|
|
|
|
+ clintId: '',
|
|
}
|
|
}
|
|
)
|
|
)
|
|
|
|
|
|
@@ -80,7 +82,7 @@ watch(
|
|
const upgradeHandler = async (): Promise<void> => {
|
|
const upgradeHandler = async (): Promise<void> => {
|
|
if (!selectValue.value) return
|
|
if (!selectValue.value) return
|
|
try {
|
|
try {
|
|
- const payload = { clientIds: [currentVersion.value], ossUrl: selectValue.value }
|
|
|
|
|
|
+ const payload = { clientIds: [props.clintId], ossUrl: selectValue.value }
|
|
await deviceApi.updateOta(payload)
|
|
await deviceApi.updateOta(payload)
|
|
emit('success')
|
|
emit('success')
|
|
} catch (err) {
|
|
} catch (err) {
|