优化细节问题

This commit is contained in:
Gao xiaosong
2021-04-18 15:28:14 +08:00
parent 829daf1f61
commit 7333043a4f
10 changed files with 863 additions and 904 deletions

View File

@ -499,6 +499,22 @@ export const handleLoginStatus = (location, complete, fail, success) => {
path: '/pages/home/index',
name: '首页',
},
{
path: '/pages/shop/HotNewGoods/index',
name: '热门榜单',
},
{
path: '/pages/activity/GoodsGroup/index',
name: '超值拼团',
},
{
path: '/pages/shop/Live/LiveList/index',
name: '热门直播',
},
{
path: '/pages/shop/GoodsClass/index',
name: '商品分类',
},
{
path: '/pages/user/Login/index',
name: '登录页面',
@ -520,7 +536,7 @@ export const handleLoginStatus = (location, complete, fail, success) => {
} else {
path = location.path
}
console.log(path)
// 判断用户是否有token
if (!handleAuth()) {
page.map(item => {
@ -531,7 +547,7 @@ export const handleLoginStatus = (location, complete, fail, success) => {
} else {
isAuth = true
}
console.log(isAuth)
return new Promise((resolve, reject) => {
if (isAuth) {
// 有token