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) } }) }