Bladeren bron

Back 优化

zhengkaixin 7 maanden geleden
bovenliggende
commit
912f036d9f
2 gewijzigde bestanden met toevoegingen van 4 en 2 verwijderingen
  1. 2 1
      pages/statistics/statistics.vue
  2. 2 1
      uni_modules/uview-ui/components/u-navbar/u-navbar.vue

+ 2 - 1
pages/statistics/statistics.vue

@@ -1306,7 +1306,8 @@
 		},
 		methods: {
 			goBack(){
-				window.location.href = process.car.BACK_URL
+				//window.location.href = process.car.BACK_URL
+				window.history.back()
 			},
 			showAccountantWaterBtn(bl){
 				this.showAccountantWater=bl

+ 2 - 1
uni_modules/uview-ui/components/u-navbar/u-navbar.vue

@@ -249,7 +249,8 @@
 				const jpuid = getUrlParam('unionid');
 				if (jpuid) {
 					//window.location.href='https://xpgj.hbjp.com.cn/prod/jp-property-platform/index/#/master/'
-					window.location.href = process.car.BACK_URL
+					//window.location.href = process.car.BACK_URL
+					window.history.back()
 					//'https://xpgj.hbjp.com.cn/prod/jp-property-platform/index/#/master/'
 				} else {
 					// 如果自定义了点击返回按钮的函数,则执行,否则执行返回逻辑