From 0207f6a767418903705bdbdbebd4e1460c4141bf Mon Sep 17 00:00:00 2001 From: tanrenren Date: Wed, 5 Jun 2024 15:17:35 +0800 Subject: [PATCH] fix lint problem --- src/views/Achievement/Index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/views/Achievement/Index.vue b/src/views/Achievement/Index.vue index 0085934..86cccb5 100644 --- a/src/views/Achievement/Index.vue +++ b/src/views/Achievement/Index.vue @@ -449,11 +449,7 @@ export default defineComponent({ const currentCat = computed(() => { let v: AchievementCategory if (currentCatId.value === ALLCAT) { - v = {} - v.achievements = [] - v.key = ALLCAT - v.name = 0 - v.order = 0 + v = { achievements: [], key: ALLCAT, id: 0, name: 0, order: 0, totalReward: 0 } // 整合所有成就便于做整体的搜索 for (let i = 0; i < achievementCat.value.length; i++) { v.achievements.push(...achievementCat.value[i].achievements)