This commit is contained in:
hzj 2025-09-09 10:37:10 +08:00
commit 9decb72520
4 changed files with 8 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import { get, post } from '../utils/http.js';
export const searchUser = async (userId) => { export const searchUser = async (userId) => {
try { try {
const response = await get(`/user/user-profile/search?account=${userId}`); const response = await get(`/user/user-profile/open-search?account=${userId}`);
return response; return response;
} catch (error) { } catch (error) {
console.error('Failed to fetch search user:', error); console.error('Failed to fetch search user:', error);

View File

@ -41,7 +41,6 @@ export const ROLE_PERMISSIONS = {
PAGES.COIN_SELLER, // 主页面 PAGES.COIN_SELLER, // 主页面
"/seller-records", "/seller-records",
"/coin-seller-search", "/coin-seller-search",
"/recharge",
"/recharge-freight-agent", "/recharge-freight-agent",
], ],

View File

@ -399,7 +399,10 @@ class RouteGuard {
PAGES.APPLY, // 申请页面 - 重要:申请页面不需要权限检查 PAGES.APPLY, // 申请页面 - 重要:申请页面不需要权限检查
PAGES.NOT_APP, // 错误页面 - APP连接失败时的页面 PAGES.NOT_APP, // 错误页面 - APP连接失败时的页面
'/404', // 404页面 '/404', // 404页面
'/error' // 通用错误页面 '/error', // 通用错误页面
'/recharge',
'/recharge-freight-agent',
'/pay-result'
] ]
return publicPages.includes(path); return publicPages.includes(path);
} }

View File

@ -138,11 +138,11 @@
<script setup> <script setup>
import MobileHeader from "../components/MobileHeader.vue"; import MobileHeader from "../components/MobileHeader.vue";
import { onMounted, ref, computed } from "vue"; import { ref } from "vue";
import { searchUser } from "@/api/userInfo"; import { searchUser } from "@/api/userInfo";
// import { getUserIdentity } from "@/api/wallet"; import { showWarning, } from "@/utils/toast.js";
import { showError, showWarning, showInfo, showSuccess } from "@/utils/toast.js";
import { useRouter } from "vue-router"; import { useRouter } from "vue-router";
import {usePageInitializationWithConfig} from "@/utils/pageConfig.js";
const router = useRouter(); const router = useRouter();