fix: 数据解析报错
This commit is contained in:
parent
243966ad95
commit
f0d7cbddc5
|
@ -318,10 +318,17 @@ const debug = () => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(() => {
|
// onMounted(() => {
|
||||||
|
// getDeviceCode();
|
||||||
|
// getTopic();
|
||||||
|
// });
|
||||||
|
|
||||||
|
watch(() => instanceStore.current?.id, () => {
|
||||||
|
if (instanceStore.current?.id) {
|
||||||
getDeviceCode();
|
getDeviceCode();
|
||||||
getTopic();
|
getTopic();
|
||||||
});
|
}
|
||||||
|
}, { immediate: true })
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang='less'>
|
<style scoped lang='less'>
|
||||||
|
|
Loading…
Reference in New Issue