10/15
1. 工作人员账号添加 2. 优化打包 3. 日志 4. 用户头像列表
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user