|
|
@@ -8,9 +8,9 @@ import { getUserByPhone, getDetail } from "@/api/modules/homeEntry";
|
|
|
*/
|
|
|
export async function usePermission(tip?: string) {
|
|
|
let type = true;
|
|
|
- if (!localGet("createdId")) {
|
|
|
+ if (!localGet("createdId") && !localGet("geeker-user").userInfo.storeId) {
|
|
|
let params = {
|
|
|
- phone: localGet("iphone") || "18641153170"
|
|
|
+ phone: localGet("iphone") || localGet("geeker-user").userInfo.phone
|
|
|
};
|
|
|
const res: any = await getUserByPhone(params);
|
|
|
if (res.data && res.data.storeId) {
|
|
|
@@ -31,7 +31,7 @@ export async function usePermission(tip?: string) {
|
|
|
}
|
|
|
return type;
|
|
|
}
|
|
|
- if (!localGet("businessSection")) {
|
|
|
+ if (!localGet("businessSection") && !localGet("geeker-user").userInfo.businessSection) {
|
|
|
type = false;
|
|
|
if (tip) {
|
|
|
ElMessage.warning(`请完成商家入驻后重新登录再进行${tip}`);
|