Преглед на файлове

Refactor memo tag handling in memos.html

- Commented out the call to `this.getAllTags()` to prevent fetching all tags during the search process.
- Introduced a new property `this.allTags` to store the fetched common tags for better management and accessibility.
tianyun преди 6 месеца
родител
ревизия
790d1c9055
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      simple-demo/memos.html

+ 2 - 1
simple-demo/memos.html

@@ -404,11 +404,12 @@
                 this.tagChecked = tagsStr.split(',')
             }
 
-            this.getAllTags();
+            // this.getAllTags();
             this.search();
 
             requestUtil.async('https://web_history.tianyunperfect.cn/memos/getCustomMemoTags', 'get').then(res => {
                 this.commonTags = JSON.parse(res['res'][0]['content']);
+                this.allTags = this.commonTags;
             });
         },
         methods: {