1. 工作人员账号添加
2. 优化打包
3. 日志
4. 用户头像列表
This commit is contained in:
Zy
2026-10-17 08:50:42 +08:00
parent 87cd3d2519
commit 5584ef1954
41 changed files with 1670 additions and 724 deletions

View File

@@ -71,12 +71,31 @@ function init() {
if (route.query.id) {
getDevice(route.query.id as string).then(res => {
Object.assign(form.value, res.data);
refresh()
});
}
}
init()
let timer = ref<NodeJS.Timeout | null>(null);
function refresh() {
getDevice(route.query.id as string).then(res => {
Object.assign(form.value, res.data);
});
timer.value = setTimeout(() => {
refresh();
}, 30000)
}
onUnmounted(() => {
if (timer.value) {
clearTimeout(timer.value);
}
timer.value = null;
})
</script>
<template>