feat: 调整项目结构
This commit is contained in:
1 parent
0b66462d16
commit
9f23854ad5
410 files changed
+3806
-1668
No files matched your search
@@ -0,0 +1 @@
|
||||
export * from "./modules";
|
||||
@@ -0,0 +1,26 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useAppStore = defineStore("app", {
|
||||
state() {
|
||||
return {
|
||||
title: "",
|
||||
sceneId: "",
|
||||
hasToken: false,
|
||||
};
|
||||
},
|
||||
getters: {},
|
||||
|
||||
actions: {
|
||||
setData(data) {
|
||||
this.title = data;
|
||||
},
|
||||
setSceneId(data) {
|
||||
this.sceneId = data;
|
||||
},
|
||||
setHasToken(data) {
|
||||
this.hasToken = data;
|
||||
},
|
||||
},
|
||||
|
||||
unistorage: true,
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
import { useAppStore } from "./app";
|
||||
|
||||
export { useAppStore };
|
||||
Reference in new issue
Block a user