zhengkaixin 3 years ago
parent
commit
d8f90874e0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/u-navbar/u-navbar.vue

+ 2 - 2
components/u-navbar/u-navbar.vue

@@ -225,8 +225,8 @@
 		created() {},
 		methods: {
 			goBack() {
-				
-				console.log("自定义")
+					//console.log("修复bug, 刷新后不能返回问题")
+			
 				// 如果自定义了点击返回按钮的函数,则执行,否则执行返回逻辑
 				if (typeof this.customBack === 'function') {
 					// 在微信,支付宝等环境(H5正常),会导致父组件定义的customBack()函数体中的this变成子组件的this