制作登录
This commit is contained in:
@ -72,6 +72,7 @@ async function _wxMnpLogin() {
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
||||
const loginRoute = '/pages/login/login'
|
||||
if (!tabbarList.includes(route)) {
|
||||
if(loginRoute.includes(route)) return
|
||||
|
||||
@ -83,7 +83,10 @@ service.interceptors.response.use(
|
||||
wxMnpLogin();
|
||||
// #endif
|
||||
//#ifdef H5 || APP-PLUS
|
||||
console.log('route=', route)
|
||||
console.log('tabbarList=', tabbarList)
|
||||
if (route && !tabbarList.includes(route)) {
|
||||
console.log(1213)
|
||||
toLogin();
|
||||
}
|
||||
// #endif
|
||||
|
||||
@ -380,12 +380,13 @@ export function setTabbar() {
|
||||
// #endif
|
||||
}
|
||||
|
||||
// tabbar页面路径
|
||||
// 忽略登录和tabbar页面路径
|
||||
export const tabbarList = [
|
||||
"pages/shop_cart/shop_cart",
|
||||
"pages/user/user",
|
||||
"pages/index/index",
|
||||
"pages/sort/sort",
|
||||
"pages/login/fast",
|
||||
];
|
||||
// 登录注册相关
|
||||
export const acountList = [
|
||||
|
||||
Reference in New Issue
Block a user