xiongzhu 3 years ago
parent
commit
3947e3026e
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/Home.vue

+ 7 - 1
src/views/Home.vue

@@ -36,6 +36,7 @@
                 v-model="searchText"
                 shape="round"
                 placeholder="请输入搜索关键词"
+                @search="onSearch"
             />
         </div>
         <div @click="scan" class="btn-scan">
@@ -132,7 +133,12 @@ export default {
             } else {
                 this.$router.push({ name: "Scan" });
             }
-        }
+        },
+        onSearch() {
+            if (this.searchText === "绿洲宇宙") {
+                locaation.href = "index.html";
+            }
+        },
     },
 };
 </script>