数据结构优化

This commit is contained in:
李琦
2026-01-20 08:31:42 +08:00
parent 41b2530510
commit adb1b8ca94
3 changed files with 133 additions and 76 deletions

View File

@@ -101,6 +101,14 @@
<!-- Right: Actions -->
<div class="flex items-center gap-3">
<button
@click="refreshCurrentPage"
class="p-2 text-art-muted hover:text-white hover:bg-white/5 rounded-full transition-colors"
title="刷新当前页面"
>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="23 4 23 10 17 10"></polyline><polyline points="1 20 1 14 7 14"></polyline><path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"></path></svg>
</button>
<button class="p-2 text-art-muted hover:text-white hover:bg-white/5 rounded-full transition-colors relative">
<span class="absolute top-2 right-2 w-2 h-2 bg-art-accent rounded-full border-2 border-art-admin-bg"></span>
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
@@ -174,6 +182,11 @@ const handleChangePassword = () => {
isUserDropdownOpen.value = false
}
const refreshCurrentPage = () => {
// 刷新当前路由页面,不刷新整个浏览器
router.replace(router.currentRoute.value.fullPath)
}
interface MenuItem {
title: string
icon: string