diff --git a/components/top-title.vue b/components/top-title.vue index 267428d..9fea94d 100644 --- a/components/top-title.vue +++ b/components/top-title.vue @@ -36,7 +36,12 @@ export default { isShowLeft: { type: Boolean, default: true, - }, + }, + // 是否自定义方法 + isCuMethod: { + type: Boolean, + default: false, + }, // 标题 title: { type: String, @@ -85,9 +90,14 @@ export default { return curPage }, // 返回 - backPage(){ + backPage(){ + if(this.isCuMethod){ + this.$emit('skipPage') + }else{ + this.$.back() + } // this.$emit('backPage') - this.$.back() + }, // 跳转页面 skipPage(item) {