From 6e12337e17704d873d8954d80e4567a94e23d92d Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 09 八月 2024 19:02:14 +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