Переглянути джерело

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: {