From d2d830d163c57975ee04746a392cc8147ccadc48 Mon Sep 17 00:00:00 2001 From: jazz <jazzxhunter@163.com> Date: 星期一, 11 十二月 2023 18:03:15 +0800 Subject: [PATCH] update_202312111803_打包更新线上 --- src/App.vue | 47 +++++++++++++++++++++++++++-------------------- 1 files changed, 27 insertions(+), 20 deletions(-) diff --git a/src/App.vue b/src/App.vue index 18f8929..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' export default { name: 'App', @@ -75,14 +80,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 +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) @@ -113,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