Browse Source

🐛 修改筛选问题

imengyu 4 hours ago
parent
commit
e116bf2150
2 changed files with 8 additions and 8 deletions
  1. 4 4
      src/views/inheritor/inheritor.vue
  2. 4 4
      src/views/inheritor/products.vue

+ 4 - 4
src/views/inheritor/inheritor.vue

@@ -68,10 +68,10 @@ const tagsData = ref([
 ]);
 
 onMounted(async () => {
-  tagsData.value = tagsData.value.concat((await IndexContent.getCategoryList(4)).map((item) => ({
-    id: item.id,
-    name: item.title,
-  })));
+  // tagsData.value = tagsData.value.concat((await IndexContent.getCategoryList(4)).map((item) => ({
+  //   id: item.id,
+  //   name: item.title,
+  // })));
   dropdownNames.value.push({ 
     options: [{
       id: 0, 

+ 4 - 4
src/views/inheritor/products.vue

@@ -68,10 +68,10 @@ const tagsData = ref([
 ]);
 
 onMounted(async () => {
-  tagsData.value = tagsData.value.concat((await CommonContent.getCategoryList(4)).map((item) => ({
-    id: item.id,
-    name: item.title,
-  })));
+  // tagsData.value = tagsData.value.concat((await CommonContent.getCategoryList(4)).map((item) => ({
+  //   id: item.id,
+  //   name: item.title,
+  // })));
   dropdownNames.value.push({ 
     options: [{
       id: 0,