Commit 16911201 by 李伟康

commit 修复旧版本没场景值

1 parent 12abfa22
...@@ -11,10 +11,11 @@ export default { ...@@ -11,10 +11,11 @@ export default {
mounted () { mounted () {
uni.showLoading() uni.showLoading()
let userInfo = uni.$storage.get('userInfo') let userInfo = uni.$storage.get('userInfo')
if (userInfo && userInfo.sceneType != undefined && userInfo.sceneType != null) {
uni.$api.userApi.getListSelectAccount().then(res => { uni.$api.userApi.getListSelectAccount().then(res => {
uni.hideLoading() uni.hideLoading()
setTimeout(() => { setTimeout(() => {
if (res.code == 0 && userInfo) { if (res.code == 0) {
let url = { let url = {
1: '/pages/boutique/index', 1: '/pages/boutique/index',
0: '/pages/home/home' 0: '/pages/home/home'
...@@ -32,6 +33,10 @@ export default { ...@@ -32,6 +33,10 @@ export default {
url: '/pages/common/login' url: '/pages/common/login'
}) })
]) ])
} else uni.reLaunch({
url: '/pages/common/login'
})
}, },
methods: { methods: {
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!