fix: 数据解析报错

This commit is contained in:
100011797 2023-06-01 16:27:25 +08:00
parent 243966ad95
commit f0d7cbddc5
1 changed files with 9 additions and 2 deletions

View File

@ -318,10 +318,17 @@ const debug = () => {
}
};
onMounted(() => {
// onMounted(() => {
// getDeviceCode();
// getTopic();
// });
watch(() => instanceStore.current?.id, () => {
if (instanceStore.current?.id) {
getDeviceCode();
getTopic();
});
}
}, { immediate: true })
</script>
<style scoped lang='less'>