| | |
| | | if (true && storage.getItem('token')) {
|
| | | setTimeout(async () => {
|
| | | const res = await this.$store.dispatch('getCurrentInfo');
|
| | | // console.log('init info',res,this.currentInfo)
|
| | | if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
|
| | |
|
| | | uni.reLaunch({
|
| | | url: '/pages/home/supplier-home'
|
| | | })
|
| | | }
|
| | | // console.log('init info',res,this.currentInfo) |
| | | // #ifdef PUB_CUSTOMER |
| | | if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) { |
| | | uni.reLaunch({ |
| | | url: '/pages/home/supplier-home' |
| | | }) |
| | | } |
| | | // #endif
|
| | | }, 200);
|
| | | } else {
|
| | |
|