From b23d630daafd3ba395881651a33c17f74194b79b Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 4 Aug 2024 16:21:13 +0800 Subject: [PATCH] code refactor --- src/views/mobile/HomePage.vue | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/views/mobile/HomePage.vue b/src/views/mobile/HomePage.vue index 4afe6ce8..8b1bb5f6 100644 --- a/src/views/mobile/HomePage.vue +++ b/src/views/mobile/HomePage.vue @@ -189,8 +189,8 @@ v-model:opened="showTransactionTemplatePopover"> + :link="'/transaction/add?templateId=' + template.id" + v-for="template in allTransactionTemplates"> @@ -320,11 +320,6 @@ export default { } }); }, - addTransaction(template) { - if (template && template.id) { - this.f7router.navigate('/transaction/add?templateId=' + template.id); - } - }, openTransactionTemplatePopover() { if (this.allTransactionTemplates && this.allTransactionTemplates.length) { this.showTransactionTemplatePopover = true;