refactor(ui): 界面升级与代码规范优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user