From bf4dca5344dee1a84b75d9993f4dfc59de3f3ee9 Mon Sep 17 00:00:00 2001
From: jazz <jazzxhunter@163.com>
Date: 星期五, 08 十二月 2023 19:34:49 +0800
Subject: [PATCH] update_202312081934_项目-治疗室屏幕web-反馈调整

---
 src/App.vue |   45 +++++++++++++++++++++++++--------------------
 1 files changed, 25 insertions(+), 20 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index b371ff0..2aefc40 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,7 +2,12 @@
     <div id="app">
         <transition name="fade" mode="out-in">
             <!-- 椤甸潰锛宨sRouterAlive 鍒锋柊鐢� -->
-            <router-view v-if="isRouterAlive"/>
+            <!-- <router-view v-if="isRouterAlive"/> -->
+            <div>
+                <keep-alive>
+                    <router-view v-if="isRouterAlive" />
+                </keep-alive>
+            </div>
         </transition>
 
         <!-- Toast 鎻愮ず -->
@@ -27,7 +32,7 @@
 import Login from '@/utils/jun_login.js'
 import wxsign from '@/utils/wxsign.js'
 import Config from './config'
-import eruda from 'eruda'
+// import eruda from 'eruda'
 export default {
     name: 'App',
 
@@ -80,11 +85,11 @@
         console.log('app amounted')
 
         // 閬垮厤鍒锋柊瀵艰嚧code閲嶅浣跨敤
-        let code = this.getQueryString('code') // 寰俊鍥炶皟code
-        let cover = this.getQueryString('cover') // 鏄惁灏侀潰鍏ュ彛
-        let local_code = this.getLocalStorage('code') // 鏈湴缂撳瓨code
-        let isRule = this.getQueryString('rule')==1 // 瑙勫垯
-        let isCoupon = this.getQueryString('coupon')==1 // 浼樻儬鍒�
+        // let code = this.getQueryString('code') // 寰俊鍥炶皟code
+        // let cover = this.getQueryString('cover') // 鏄惁灏侀潰鍏ュ彛
+        // let local_code = this.getLocalStorage('code') // 鏈湴缂撳瓨code
+        // let isRule = this.getQueryString('rule')==1 // 瑙勫垯
+        // let isCoupon = this.getQueryString('coupon')==1 // 浼樻儬鍒�
 
         // 浠ヤ笅鎯呭喌闇�瑕侀噸瀹氬悜鍒伴暱閾�
         // 1. 閾炬帴甯︽湁code锛屼絾code宸茬粡鐢ㄨ繃
@@ -94,20 +99,20 @@
         // 4. 闈炰紭鎯犲埜鍗曢〉
         // console.dir(Config.createCodeUrl())
 
-        if(Config.isWxLoginType){
-            if (code && local_code == code || (!isCoupon && !isRule && !cover && !code && !Config.ismock && !Config.istest)) {
-                // 璇ュ井淇ode宸蹭娇鐢紝閲嶆柊璺宠浆闀块摼
-                Login.toLongUrl()
-                return
-            } else {
-                this.removeLocalStorage('code')
-            }
-        }
+        // if(Config.isWxLoginType){
+        //     if (code && local_code == code || (!isCoupon && !isRule && !cover && !code && !Config.ismock && !Config.istest)) {
+        //         // 璇ュ井淇ode宸蹭娇鐢紝閲嶆柊璺宠浆闀块摼
+        //         Login.toLongUrl()
+        //         return
+        //     } else {
+        //         this.removeLocalStorage('code')
+        //     }
+        // }
 
         // 鍒锋柊鍥哄畾棣栭〉
-        if (location.hash && location.hash!='#/') {
-            this.$router.replace({name: 'root'})
-        }
+        // if (location.hash && location.hash!='#/') {
+        //     this.$router.replace({name: 'root'})
+        // }
 
         // 鏆撮湶鍒板叏灞�锛宩un_httpEvent.js 璋冪敤
         window.appLoading = this.loading.bind(this)
@@ -115,7 +120,7 @@
         window.appToast = this.toast.bind(this)
 
         // this.$refs.audio.play()
-        if(Config.isWxLoginType) this.wxinit()
+        // if(Config.isWxLoginType) this.wxinit()
     },
     methods: {
         // 寰俊鍒濆鍖�

--
Gitblit v1.8.0