@@ -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>