mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 11:27:17 +08:00
18 lines
248 B
Go
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
|
|
})
|