From 6d37dc93b40c6935f65ec4c68b7f6985c9d3bad5 Mon Sep 17 00:00:00 2001
From: jxmanxk <312142485@qq.com>
Date: 星期二, 23 一月 2024 17:44:14 +0800
Subject: [PATCH] Merge branch 'xio_dev'

---
 src/App.vue |   53 +++++++++++++++++++++++++++++++----------------------
 1 files changed, 31 insertions(+), 22 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 18f8929..5f4bbe0 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 鎻愮ず -->
@@ -24,10 +29,11 @@
 // 鍏ュ彛鍙傛暟
 // 杩欓噷娉ㄩ噴鍏ュ彛鍙傛暟
 
-import Login from '@/utils/jun_login.js'
+// import Login from '@/utils/jun_login.js'
 import wxsign from '@/utils/wxsign.js'
-import Config from './config'
-
+// import Config from './config'
+// import xioFn from './utils/xio_fn.js'
+// import eruda from 'eruda'
 export default {
     name: 'App',
 
@@ -75,14 +81,16 @@
         }
     },
     mounted () {
+        // console.log('/**********************/', eruda)
+        // eruda && eruda.init()
         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宸茬粡鐢ㄨ繃
@@ -92,20 +100,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)
@@ -113,7 +121,8 @@
         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