From c212c9ab501e1aff9e2dd90e8e87871c0bc7f1bc Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 30 七月 2024 14:03:29 +0800
Subject: [PATCH] fix bug

---
 App.vue |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/App.vue b/App.vue
index b46206b..157231c 100644
--- a/App.vue
+++ b/App.vue
@@ -25,10 +25,17 @@
 				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'

--
Gitblit v1.9.3