From 7c7fd1a80ad89dd1037f2ee420fed2dcde7290a1 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 20 八月 2024 16:42:53 +0800
Subject: [PATCH] 1

---
 App.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/App.vue b/App.vue
index 796812d..e44d83f 100644
--- a/App.vue
+++ b/App.vue
@@ -5,7 +5,7 @@
 	import storage from '@/plugins/storage.js'
 
 	export default {
-		onLaunch: function(options) {
+		onLaunch: async function(options) {
 			var query = options.q && decodeURIComponent(options.q) || ''
 			var querydto = {}
 			if (query) {
@@ -52,9 +52,9 @@
 				}
 			});
 			// #ifdef MP
-			if (true && storage.getItem('token')) {
+			if (true && storage.getItem('token')) {
+				const res = await this.$store.dispatch('getCurrentInfo');				
 				setTimeout(async () => {
-					const res = await this.$store.dispatch('getCurrentInfo');
 					// #ifndef PUB_CUSTOMER
 					if (this.currentInfo && this.currentInfo.id && !this.currentInfo.openId) {
 						if (this.currentInfo.type === 'admin') {

--
Gitblit v1.9.3