mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
feat(store): 新建 achievements.store 用于管理成就相关数据
This commit is contained in:
23
src/store/modules/achievements.ts
Normal file
23
src/store/modules/achievements.ts
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
/**
|
||||||
|
* @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",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
persist: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
export default useAchievementsStore;
|
||||||
Reference in New Issue
Block a user