| | |
| | | setTimeout(async () => {
|
| | | const res = await this.$store.dispatch('getCurrentInfo');
|
| | | // #ifndef PUB_CUSTOMER
|
| | | if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
|
| | | uni.reLaunch({
|
| | | url: '/pages/home/supplier-home'
|
| | | })
|
| | | if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) { |
| | | if(this.currentInfo.type==='admin'){ |
| | | uni.reLaunch({ |
| | | url: '/sub_pages/partner/delivery/delivery-home' |
| | | }) |
| | | }else{ |
| | | uni.reLaunch({ |
| | | url: '/pages/home/supplier-home' |
| | | }) |
| | | }
|
| | | |
| | | } else {
|
| | | uni.reLaunch({
|
| | | url: '/pages/login/supplier-login'
|