diff --git a/src/views/device/Instance/Detail/Parsing/index.vue b/src/views/device/Instance/Detail/Parsing/index.vue index 31e69529..6b93478e 100644 --- a/src/views/device/Instance/Detail/Parsing/index.vue +++ b/src/views/device/Instance/Detail/Parsing/index.vue @@ -318,10 +318,17 @@ const debug = () => { } }; -onMounted(() => { +// onMounted(() => { +// getDeviceCode(); +// getTopic(); +// }); + +watch(() => instanceStore.current?.id, () => { + if (instanceStore.current?.id) { getDeviceCode(); getTopic(); -}); + } +}, { immediate: true })