diff --git a/src/api/userInfo.js b/src/api/userInfo.js index 216ba4a..47a59e8 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/permissionManager.js b/src/utils/permissionManager.js index b61680c..3c1b3b1 100644 --- a/src/utils/permissionManager.js +++ b/src/utils/permissionManager.js @@ -41,7 +41,6 @@ export const ROLE_PERMISSIONS = { PAGES.COIN_SELLER, // 主页面 "/seller-records", "/coin-seller-search", - "/recharge", "/recharge-freight-agent", ], diff --git a/src/utils/routeGuard.js b/src/utils/routeGuard.js index 30f385e..effa4d6 100644 --- a/src/utils/routeGuard.js +++ b/src/utils/routeGuard.js @@ -399,7 +399,10 @@ class RouteGuard { PAGES.APPLY, // 申请页面 - 重要:申请页面不需要权限检查 PAGES.NOT_APP, // 错误页面 - APP连接失败时的页面 '/404', // 404页面 - '/error' // 通用错误页面 + '/error', // 通用错误页面 + '/recharge', + '/recharge-freight-agent', + '/pay-result' ] return publicPages.includes(path); } diff --git a/src/views/Recharge.vue b/src/views/Recharge.vue index 3ec9403..393eba8 100644 --- a/src/views/Recharge.vue +++ b/src/views/Recharge.vue @@ -138,11 +138,11 @@