refactor(vue): 重构代码,采用setup语法

This commit is contained in:
BTMuli
2023-03-09 16:19:26 +08:00
parent 817ccaf18a
commit 5bf45c6080
8 changed files with 455 additions and 564 deletions

View File

@@ -8,6 +8,12 @@ const useDevStore = defineStore({
magicCount: 0,
};
},
actions: {
init() {
this.showDev = false;
this.magicCount = 0;
},
},
persist: true,
});