0513新功能优化

This commit is contained in:
lzm
2026-05-13 11:41:30 +08:00
parent ddc0c7db1e
commit 5cb913cb0a
20 changed files with 442 additions and 229 deletions

View File

@@ -504,12 +504,19 @@ const handleDelete = async (id: number) => {
} catch {}
}
let activatedOnce = false
onMounted(async () => {
await loadOfficeOptions()
await getList()
})
onActivated(() => {
// KeepAlive 首次挂载也会触发 onActivated跳过首轮避免重复请求列表。
if (!activatedOnce) {
activatedOnce = true
return
}
getList()
})
</script>