zs 10 months ago
parent
commit
33eb51ed23
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/index/index.vue

+ 6 - 1
src/views/index/index.vue

@@ -103,7 +103,12 @@ onMounted(async () => {
   search()
   loading.value = false
 })
-const search = async () => {}
+const search = async () => {
+  const menuList = menu.value.filter((item) => {
+    if (item.href != 'one') return item
+  })
+  menu.value = menuList
+}
 // 搜索
 const onSearch = (data) => {
   const query = { type: 'search' }