全栈小学生 94c19e2ee3 update web
2023-09-06 18:40:52 +08:00

24 lines
466 B
TypeScript

import { defineStore } from 'pinia'
import storage from '@/utils/storage'
interface System {
lang: string,
site: Record<string, any>
}
const useSystemStore = defineStore('system', {
state: (): System => {
return {
lang: storage.get('lang') ?? 'zh-cn',
site: {
front_end_name: '',
site_name: ''
}
}
},
actions: {
}
})
export default useSystemStore