瀏覽代碼

静态页面

xcx 4 年之前
父節點
當前提交
ef6a927db9

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

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

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

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

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

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