From 03080e12de7de3fec89b2f77fcf9f73c02bc6cf0 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期三, 30 十月 2024 14:33:12 +0800 Subject: [PATCH] 获取相似问题,group_type --- src/api/menu/index.ts | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/menu/index.ts b/src/api/menu/index.ts index 65183e2..032752c 100644 --- a/src/api/menu/index.ts +++ b/src/api/menu/index.ts @@ -1,7 +1,7 @@ -import request, { getToken } from '/@/utils/request'; import { GetUserMenuTree } from '/@/api/login/index.js'; import { MenuTypeEnum } from '/@/api/menu/type'; -import { PathRouteType } from '/@/router/pathMap'; +import type { PathRouteType } from '/@/router/pathMap'; +import request, { getSession } from '/@/utils/request'; /** * 浠ヤ笅涓烘ā鎷熸帴鍙e湴鍧�锛実itee 鐨勪笉閫氾紝灏辨崲鑷繁鐨勭湡瀹炴帴鍙e湴鍧� * @@ -106,7 +106,7 @@ const urlArr = splitArr.slice(0, -1); if (params) { if (/{\s*token\s*\}/.test(params)) { - const token = getToken(); + const token = getSession(); const newParams = params.replace(/(?<=\s*=\s*)\{\s*token\s*\}/, token); urlArr.push(newParams); const newOutLink = urlArr.join('?'); @@ -150,7 +150,7 @@ resultAny.meta.isAffix = pathRoute.isAffix; resultAny.meta.isKeepAlive = pathRoute.isKeepAlive; - + resultAny.meta.showTitle = pathRoute.showTitle; // 灏� pathMap 鐨� value 缃负褰撳墠 result pathMap.set(item.Path, result as any); } -- Gitblit v1.9.3