yuanyuan 2 anos atrás
pai
commit
d9183e6bb6
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/search/SearchAll.vue

+ 1 - 1
src/views/search/SearchAll.vue

@@ -84,13 +84,13 @@ export default {
                 this.$toast('搜索内容不能为空');
                 return;
             }
+            this.addHistory(this.search);
             this.$router.push('/searchResult?search=' + item);
         },
         clickRight() {
             this.getSearch(this.search);
         },
         onKey(e) {
-            console.log(e.keyCode);
             if (e.keyCode === 13) {
                 this.ddHistory(this.search);
                 this.$router.push('/searchResult?search=' + this.search);