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();
|
||||
getTopic();
|
||||
});
|
||||
}
|
||||
}, { immediate: true })
|
||||
</script>
|
||||
|
||||
<style scoped lang='less'>
|
||||
|
|
Loading…
Reference in New Issue