feat(gallery): fix router back navigation from gallery and unlock achievements after visiting instead of before
This commit is contained in:
@@ -40,6 +40,12 @@ export const useHomeStore = defineStore("home", {
|
||||
this.$reset();
|
||||
this.selectedButton = selectedButton;
|
||||
this.animateIntro();
|
||||
|
||||
if (app.visitedGallery) {
|
||||
app.visitedGallery = false;
|
||||
const achievements = useAchievementsStore();
|
||||
achievements.unlock("gallery_visit");
|
||||
}
|
||||
},
|
||||
|
||||
animateIntro() {
|
||||
|
||||
Reference in New Issue
Block a user