2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00
Files
panel/web/src/store/modules/file/index.ts
2025-01-01 17:32:59 +08:00

18 lines
248 B
Go

export interface File {
path: string
}
export const useFileStore = defineStore('file', {
state: (): File => {
return {
path: '/'
}
},
actions: {
set(info: File) {
this.path = info.path
}
},
persist: true
})