mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
35 lines
719 B
TypeScript
35 lines
719 B
TypeScript
/**
|
|
* @file store modules achievements.ts
|
|
* @description Achievements store module
|
|
* @author BTMuli<bt-muli@outlook.com>
|
|
* @since Alpha
|
|
*/
|
|
|
|
import { defineStore } from "pinia";
|
|
|
|
const useAchievementsStore = defineStore({
|
|
id: "achievements",
|
|
state() {
|
|
return {
|
|
total_achievements: 899,
|
|
fin_achievements: 0,
|
|
// 这个数据用于说明当前的数据版本,不会被渲染
|
|
last_version: "v3.5",
|
|
UIAF_Version: "v1.1",
|
|
};
|
|
},
|
|
actions: {
|
|
init() {
|
|
this.total_achievements = 899;
|
|
this.fin_achievements = 0;
|
|
},
|
|
flushData(total: number, fin: number) {
|
|
this.total_achievements = total;
|
|
this.fin_achievements = fin;
|
|
},
|
|
},
|
|
persist: true,
|
|
});
|
|
|
|
export default useAchievementsStore;
|