1.根据新疆反馈,修改相关问题
This commit is contained in:
2025-12-17 11:16:06 +08:00
parent 53195cc5c2
commit ded845793a
7 changed files with 202 additions and 105 deletions
@@ -84,13 +84,59 @@
type: Number,
default: () => 0,
},
bKey: {
type: String,
default: () => '',
},
});
onMounted(() => {
init();
});
watch(props, () => {
init();
});
watch(
() => props.orgCode,
() => {
init();
}
);
watch(
() => props.bKey,
() => {
init();
}
);
watch(
() => props.type,
() => {
init();
}
);
watch(
() => props.themeType,
() => {
init();
}
);
watch(
() => props.refreshState,
() => {
init();
}
);
watch(
() => props.chooseType,
() => {
initByLocal();
}
);
async function initByLocal() {
if (localStorage.getItem('monitorDataOne')) {
dataList.value = JSON.parse(localStorage.getItem('monitorDataOne') || '{}');
} else {
await init();
}
}
const emit = defineEmits(['clickPie']);