From 1a467fe67ab182430ab15d0f862c295b10131e8e Mon Sep 17 00:00:00 2001 From: yuan Date: Tue, 9 Jan 2024 11:31:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/contact/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/contact/index.vue b/src/pages/contact/index.vue index ef8b396..d9c1987 100644 --- a/src/pages/contact/index.vue +++ b/src/pages/contact/index.vue @@ -64,8 +64,8 @@ function init() { if ((from.url === "/pages/contact-new/index" && to.url === "/pages/contact/index") || (from.url === "/pages/contact-edit/index" && to.url === "/pages/contact/index") ) { - state.searchQuery = "" - generateContactGroupList(contacts.allContacts) + let contactList = contacts.searchContacts(state.searchQuery) + generateContactGroupList(contactList) } }) }