refactor(ui): 界面升级与代码规范优化

This commit is contained in:
Ray.Hao
2026-06-18 18:38:12 +08:00
parent 288ea9b43d
commit 14035cfa4d
130 changed files with 7813 additions and 5893 deletions

View File

@@ -4,7 +4,6 @@ import router from "@/router";
import { usePermissionStore, useUserStore } from "@/stores";
import { useTenantStoreHook } from "@/stores/tenant";
import { isTenantEnabled } from "@/utils/tenant";
import { addRecentMenu } from "@/composables/useRecentMenus";
/**
* 路由权限守卫
@@ -78,12 +77,6 @@ export function setupPermissionGuard() {
router.afterEach((to) => {
NProgress.done();
// 记录最近访问
if (to.meta?.title && to.path) {
const icon = typeof to.meta.icon === "string" ? to.meta.icon : undefined;
addRecentMenu(to.path, to.meta.title as string, icon);
}
});
}

View File

@@ -59,7 +59,7 @@ export const constantRoutes: RouteRecordRaw[] = [
meta: { title: "个人中心", icon: "user", hidden: true },
},
{
path: "my-notice",
path: "profile/notice",
name: "MyNotice",
component: () => import("@/views/profile/notice/index.vue"),
meta: { title: "我的通知", icon: "user", hidden: true },