mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
fix(dev): 页面加载逻辑优化
This commit is contained in:
@@ -8,21 +8,7 @@ const useDevStore = defineStore({
|
||||
magicCount: 0,
|
||||
};
|
||||
},
|
||||
actions: {
|
||||
addMagic() {
|
||||
if (!this.showDev) {
|
||||
this.magicCount++;
|
||||
if (this.magicCount >= 5) {
|
||||
this.toggleDev();
|
||||
}
|
||||
}
|
||||
},
|
||||
toggleDev() {
|
||||
this.showDev = !this.showDev;
|
||||
this.magicCount = 0;
|
||||
},
|
||||
},
|
||||
persist: false,
|
||||
persist: true,
|
||||
});
|
||||
|
||||
export default useDevStore;
|
||||
|
||||
Reference in New Issue
Block a user