flat: 登陆

This commit is contained in:
Apcallover
2024-03-20 20:21:25 +08:00
parent 0e959356c3
commit e1726ca03a
6 changed files with 99 additions and 29 deletions

View File

@@ -275,8 +275,15 @@
swiperType:1,//轮播图类型冀联1、衡水3
};
},
onLoad: function() {},
onLoad: function(options) { },
onShow: function() {
console.log(this.$store.state.auth.loginType, 'index')
// if(this.$store.state.auth.loginType !== 0) {
// uni.reLaunch({
// url: '/pages/login/blank'
// })
// return
// }
if (!this.$store.state.user.token) {
uni.reLaunch({
url: '/pages/login/login'