mirror of
https://github.com/chatopera/cosin.git
synced 2025-08-01 16:38:02 +08:00
chore: spell error
Signed-off-by: Kaifuny <superbiger.github@gmail.com>
This commit is contained in:
parent
7f2379c5ef
commit
11f47964f5
@ -2,5 +2,5 @@ import { createPinia } from 'pinia'
|
|||||||
|
|
||||||
export const pinia = createPinia()
|
export const pinia = createPinia()
|
||||||
|
|
||||||
// export * from './modules/apparence'
|
export * from './modules/apperance'
|
||||||
// export * from './modules/auth'
|
// export * from './modules/auth'
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { Apparence } from '@cskefu/models'
|
import { Apperance } from '@cskefu/models'
|
||||||
|
|
||||||
export const useApparence = defineStore('alerts', {
|
export const useApperance = defineStore('alerts', {
|
||||||
state: (): Apparence => ({ lang: 'zh-CN', darkMode: false }),
|
state: (): Apperance => ({ lang: 'zh-CN', darkMode: false }),
|
||||||
getters: {
|
getters: {
|
||||||
isDarkMode: (state) => state.darkMode,
|
isDarkMode: (state) => state.darkMode,
|
||||||
getLang: (state) => state.lang,
|
getLang: (state) => state.lang,
|
@ -1,4 +1,4 @@
|
|||||||
export type Apparence = {
|
export type Apperance = {
|
||||||
lang: string
|
lang: string
|
||||||
darkMode: boolean
|
darkMode: boolean
|
||||||
}
|
}
|
@ -1,2 +1,2 @@
|
|||||||
export * from './routes'
|
export * from './routes'
|
||||||
export * from './apparence'
|
export * from './apperance'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user