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 () => {