refactor: restructure pinia stores, fix calendar, add utilities

- Restructure Pinia store organization from src/stores/ to src/store/ with modular stores
- Update main.ts to use locally created Pinia instance instead of imported pre-configured one
- Fix template syntax errors in Calendar component: correct missing class spacing and incorrect closing tags
- Remove unused calendar demo/example files and documentation
- Add new constant files, token management utilities, and client configuration constants
- Add custom hooks useGoHome and useGoLogin for navigation and login logic
This commit is contained in:
duanshuwen
2026-05-26 23:02:05 +08:00
parent ac8f5b5f64
commit c977c485ef
20 changed files with 344 additions and 1494 deletions

View File

@@ -0,0 +1,17 @@
import { defineStore } from "pinia";
export const usePictureStore = defineStore("picture", {
state() {
return {
previewImageData: [], // 预览图片数据
};
},
actions: {
setPreviewImageData(data) {
this.previewImageData = data;
},
},
unistorage: true,
});