From b0f5961a3571413a1a5a4cd9694a05186fa9c0a1 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期二, 20 八月 2024 16:19:52 +0800
Subject: [PATCH] fix bug
---
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