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