mirror of
https://github.com/acepanel/panel.git
synced 2026-02-08 14:14:28 +08:00
feat: 文件管理优化
This commit is contained in:
17
web/src/store/modules/file/index.ts
Normal file
17
web/src/store/modules/file/index.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export interface File {
|
||||
path: string
|
||||
}
|
||||
|
||||
export const useFileStore = defineStore('file', {
|
||||
state: (): File => {
|
||||
return {
|
||||
path: '/'
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
set(info: File) {
|
||||
this.path = info.path
|
||||
}
|
||||
},
|
||||
persist: true
|
||||
})
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from './file'
|
||||
export * from './permission'
|
||||
export * from './tab'
|
||||
export * from './theme'
|
||||
|
||||
Reference in New Issue
Block a user