mirror of
https://gitee.com/niucloud-team/niucloud.git
synced 2025-12-14 10:32:49 +00:00
16 lines
303 B
TypeScript
16 lines
303 B
TypeScript
import { defineStore } from 'pinia'
|
|
import storage from '@/utils/storage'
|
|
|
|
interface System {
|
|
lang: string
|
|
}
|
|
|
|
const useSystemStore = defineStore('system', {
|
|
state: (): System => {
|
|
return {
|
|
lang: storage.get('lang') ?? 'zh-cn'
|
|
}
|
|
}
|
|
})
|
|
|
|
export default useSystemStore |