tianyi 1 month ago
parent
commit
1df213c282
  1. 11
      pages/index/index.vue

11
pages/index/index.vue

@ -298,17 +298,18 @@
} }
}, },
onLoad() { onLoad() {
if(!uni.getStorageSync('area') || !uni.getStorageSync('shopId')){
uni.reLaunch({
url: '../login/login'
})
}
if(uni.getStorageSync('peisongyuan')){ if(uni.getStorageSync('peisongyuan')){
uni.reLaunch({ uni.reLaunch({
url: '../worker/index' url: '../worker/index'
}) })
return return
} }
if(!uni.getStorageSync('area') || !uni.getStorageSync('shopId')){
uni.reLaunch({
url: '../login/login'
})
}
}, },
methods: { methods: {
indexInit() { indexInit() {

Loading…
Cancel
Save