mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-01 07:24:30 +08:00
refactor: 完成成就
This commit is contained in:
1 parent
2d3146758b
commit
d178908649
4 files changed
+6
-10
No files matched your search
@@ -21,9 +21,6 @@ export default function init() {
|
||||
return { completeAchievement, hasCompletedAchievement, addMountSign };
|
||||
}
|
||||
|
||||
export const showComplete = ref(false);
|
||||
export const completeAchi = ref('explore,1');
|
||||
|
||||
export const totalPoint = Object.values(list)
|
||||
.map((v: Achievement[]) =>
|
||||
v.reduce((prev, curr) => {
|
||||
@@ -54,8 +51,7 @@ export function completeAchievement(type: AchievementType, index: number) {
|
||||
if (type === 'explore' && !Object.values(achiDict).includes(index)) {
|
||||
checkCompletionAchievement();
|
||||
}
|
||||
completeAchi.value = `${type},${index}`;
|
||||
showComplete.value = true;
|
||||
mota.ui.fixed.open('completeAchi', { complete: `${type},${index}` });
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user