feat: 调整项目结构

This commit is contained in:
duanshuwen
2025-09-21 17:25:09 +08:00
parent 0b66462d16
commit 9f23854ad5
410 changed files with 3806 additions and 1668 deletions

1
src/store/index.js Normal file
View File

@@ -0,0 +1 @@
export * from "./modules";

26
src/store/modules/app.js Normal file
View File

@@ -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,
});

View File

@@ -0,0 +1,3 @@
import { useAppStore } from "./app";
export { useAppStore };