refactor: 个人中心页面重构和布局代码优化
This commit is contained in:
@@ -75,18 +75,13 @@ export function setupPermissionGuard() {
|
||||
}
|
||||
});
|
||||
|
||||
router.afterEach((to) => {
|
||||
router.afterEach(() => {
|
||||
NProgress.done();
|
||||
});
|
||||
}
|
||||
|
||||
// ============================================
|
||||
// 多租户支持(可选)
|
||||
// ============================================
|
||||
|
||||
/** 初始化多租户上下文,未启用或失败时静默跳过 */
|
||||
async function initTenantContext(): Promise<void> {
|
||||
// 多租户关闭时不初始化租户上下文
|
||||
if (!isTenantEnabled()) return;
|
||||
|
||||
try {
|
||||
|
||||
@@ -12,7 +12,7 @@ export const constantRoutes: RouteRecordRaw[] = [
|
||||
children: [
|
||||
{
|
||||
path: "/redirect/:path(.*)",
|
||||
component: () => import("@/views/redirect/index.vue"),
|
||||
component: () => import("@/views/common/redirect.vue"),
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user