File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,7 @@ import { defineStore } from 'pinia';
22import { router } from '@/router' ;
33import axios from 'axios' ;
44
5- export const useAuthStore = defineStore ( {
6- id : 'auth' ,
5+ export const useAuthStore = defineStore ( "auth" , {
76 state : ( ) => ( {
87 // @ts -ignore
98 username : '' ,
Original file line number Diff line number Diff line change 11import { defineStore } from 'pinia' ;
22import axios from 'axios' ;
33
4- export const useCommonStore = defineStore ( {
5- id : 'common' ,
4+ export const useCommonStore = defineStore ( "common" , {
65 state : ( ) => ( {
76 // @ts -ignore
87 eventSource : null ,
Original file line number Diff line number Diff line change 11import { defineStore } from 'pinia' ;
22import config from '@/config' ;
33
4- export const useCustomizerStore = defineStore ( {
5- id : 'customizer' ,
4+ export const useCustomizerStore = defineStore ( "customizer" , {
65 state : ( ) => ( {
76 Sidebar_drawer : config . Sidebar_drawer ,
87 Customizer_drawer : config . Customizer_drawer ,
Original file line number Diff line number Diff line change @@ -43,8 +43,7 @@ export interface ReorderItem {
4343 sort_order : number ;
4444}
4545
46- export const usePersonaStore = defineStore ( {
47- id : 'persona' ,
46+ export const usePersonaStore = defineStore ( "persona" , {
4847 state : ( ) => ( {
4948 folderTree : [ ] as FolderTreeNode [ ] ,
5049 currentFolderId : null as string | null ,
You can’t perform that action at this time.
0 commit comments