Skip to content

Commit

Permalink
fix lint problem
Browse files Browse the repository at this point in the history
  • Loading branch information
leavesandflowers committed Jun 5, 2024
1 parent 44ff03d commit 0207f6a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/views/Achievement/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0207f6a

Please sign in to comment.