From f34149ff835c40c412117f42feea5c5aa8d65b2b Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 8 Sep 2025 17:44:09 +0800 Subject: [PATCH] =?UTF-8?q?/recharge=20=E6=96=B0=E5=A2=9E=E4=B8=BA?= =?UTF-8?q?=E5=85=AC=E5=85=B1=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/userInfo.js | 2 +- src/utils/routeGuard.js | 4 +++- src/views/Recharge.vue | 9 --------- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/api/userInfo.js b/src/api/userInfo.js index e1138ac..c07afd0 100644 --- a/src/api/userInfo.js +++ b/src/api/userInfo.js @@ -2,7 +2,7 @@ import { get, post } from "../utils/http.js"; export const searchUser = async (userId) => { try { - const response = await get(`/user/user-profile/search?account=${userId}`); + const response = await get(`/user/user-profile/open-search?account=${userId}`); return response; } catch (error) { console.error("Failed to fetch search user:", error); diff --git a/src/utils/routeGuard.js b/src/utils/routeGuard.js index 30f385e..e541a77 100644 --- a/src/utils/routeGuard.js +++ b/src/utils/routeGuard.js @@ -399,7 +399,9 @@ class RouteGuard { PAGES.APPLY, // 申请页面 - 重要:申请页面不需要权限检查 PAGES.NOT_APP, // 错误页面 - APP连接失败时的页面 '/404', // 404页面 - '/error' // 通用错误页面 + '/error', // 通用错误页面 + '/recharge', + '/recharge-freight-agent' ] return publicPages.includes(path); } diff --git a/src/views/Recharge.vue b/src/views/Recharge.vue index 05b08af..393eba8 100644 --- a/src/views/Recharge.vue +++ b/src/views/Recharge.vue @@ -157,15 +157,6 @@ const closedPopup = () => { dialogshow.value = false; }; -// 页面加载时获取申请记录 -usePageInitializationWithConfig('RECHARGE', { - needsBankBalance: false, - needsWorkStatistics: false, - needsTeamInfo: false, - needsRouteGuard: true, - -}) - const targetUserId = ref(""); const checkUserId = async () => {