张文飞 3 лет назад
Родитель
Сommit
1ab26546d4
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      pages/homePage/homePage.vue

+ 5 - 1
pages/homePage/homePage.vue

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