diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index 8e4e1af..f6397bc 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -194,10 +194,6 @@ export default { beforeRouteUpdate (to, from, next) { this.rightDrawerOpen = false - // 离开搜索页面时清空输入框 - if (to.path.indexOf('search') === -1) { - this.keyword = '' - } next() } }