张文飞 3 سال پیش
والد
کامیت
1ab26546d4
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      pages/homePage/homePage.vue

+ 5 - 1
pages/homePage/homePage.vue

@@ -275,13 +275,17 @@
 			}
 			}
 		},
 		},
 		mounted() {
 		mounted() {
-			window.addEventListener('pageshow', function(){        
+			/* window.addEventListener('pageshow', function(){        
 			    if(this.isPageHide) {
 			    if(this.isPageHide) {
 			        window.location.reload();
 			        window.location.reload();
 			    }
 			    }
 			})
 			})
             window.addEventListener('pagehide',function(){
             window.addEventListener('pagehide',function(){
 				this.isPageHide = true;
 				this.isPageHide = true;
+			}) */
+			window.history.pushState('','',local.href);
+			window.addEventListener('popstate',function(){
+				history.go(-2);
 			})
 			})
 			this.isFirst = true
 			this.isFirst = true
 			this.color4 = app.globalData.color4;
 			this.color4 = app.globalData.color4;