浏览代码

静态页面

xcx 4 年前
父节点
当前提交
ef6a927db9

+ 2
- 1
src/pages/KaiJiangZhanShi/SubIndex/index.vue 查看文件

@@ -85,6 +85,7 @@ export default {
85 85
     if (window.history && window.history.pushState) {
86 86
       this.ExitAppStatus = false
87 87
       window.history.pushState(null, null, document.URL)
88
+      window.history.pushState(null, null, document.URL)
88 89
       window.addEventListener('popstate', this.RouterBack, false)
89 90
     }
90 91
     this.$nextTick(() => {
@@ -100,7 +101,7 @@ export default {
100 101
     ]),
101 102
     RouterBack () {
102 103
       if (this.ExitAppStatus) {
103
-
104
+        console.log(123)
104 105
       } else {
105 106
         this.Toast('再按一次退出应用')
106 107
         this.ExitAppStatus = true

+ 1
- 0
src/pages/WoDe/UserCenter/index.vue 查看文件

@@ -73,6 +73,7 @@ export default {
73 73
     if (window.history && window.history.pushState) {
74 74
       this.ExitAppStatus = false
75 75
       window.history.pushState(null, null, document.URL)
76
+      window.history.pushState(null, null, document.URL)
76 77
       window.addEventListener('popstate', this.RouterBack, false)
77 78
     }
78 79
     this.$nextTick(() => {

+ 1
- 0
src/pages/index/ShouYe/index.vue 查看文件

@@ -105,6 +105,7 @@ export default {
105 105
     if (window.history && window.history.pushState) {
106 106
       this.ExitAppStatus = false
107 107
       window.history.pushState(null, null, document.URL)
108
+      window.history.pushState(null, null, document.URL)
108 109
       window.addEventListener('popstate', this.RouterBack, false)
109 110
     }
110 111
     this.$nextTick(() => {