From 21d60ea748c22e443a7a7e4ce38dbe7252404f0f Mon Sep 17 00:00:00 2001 From: limingtao <@ming_tao_li> Date: Tue, 6 Aug 2024 09:45:56 +0800 Subject: [PATCH] 1 --- components/top-title.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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) {