Merge branch 'master' of https://codeup.aliyun.com/68804903e94e043d2d0f7d15/front/likei-h5
This commit is contained in:
commit
9decb72520
@ -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);
|
||||
|
||||
@ -41,7 +41,6 @@ export const ROLE_PERMISSIONS = {
|
||||
PAGES.COIN_SELLER, // 主页面
|
||||
"/seller-records",
|
||||
"/coin-seller-search",
|
||||
"/recharge",
|
||||
"/recharge-freight-agent",
|
||||
],
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
@ -138,11 +138,11 @@
|
||||
|
||||
<script setup>
|
||||
import MobileHeader from "../components/MobileHeader.vue";
|
||||
import { onMounted, ref, computed } from "vue";
|
||||
import { ref } from "vue";
|
||||
import { searchUser } from "@/api/userInfo";
|
||||
// import { getUserIdentity } from "@/api/wallet";
|
||||
import { showError, showWarning, showInfo, showSuccess } from "@/utils/toast.js";
|
||||
import { showWarning, } from "@/utils/toast.js";
|
||||
import { useRouter } from "vue-router";
|
||||
import {usePageInitializationWithConfig} from "@/utils/pageConfig.js";
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user