From 4aa039d20f5db0bf760619d88b05cb7c11edad03 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 13 十二月 2024 14:38:27 +0800
Subject: [PATCH] 最新版本541200007
---
h5/App.vue | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/h5/App.vue b/h5/App.vue
index c567d31..04a031d 100644
--- a/h5/App.vue
+++ b/h5/App.vue
@@ -1,8 +1,13 @@
<script>
-import { wxAuthorize, refreshToken } from '@/api'
+import { wxAuthorize, refreshToken, app_url } from '@/api'
export default {
onLaunch: function () {
-
+ window.addEventListener("popstate", (event) => {
+ const path = this.$route.fullPath
+ if(path == '/pages/login/login' || path == '/'){
+ window.location.href = app_url
+ }
+ })
},
onShow: function () {
console.log('App Show')
--
Gitblit v1.9.3