feat: version 2.9.1 (#207)

* feat: i18n

* chore: format

* feat: 补充遗漏翻译

* chore: update deps

* feat: 复制代码块[#196][#197]

* chore: version 2.9.1
This commit is contained in:
Redon authored and GitHub committed 2023-03-02 21:27:20 +08:00
1 parent 21cf1bdd9e
commit f19998d59b
26 files changed
+589 -334

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
import type { App } from 'vue'
import { createPinia } from 'pinia'
export const store = createPinia()
export function setupStore(app: App) {
const store = createPinia()
app.use(store)
}
+5
View File
@@ -1,6 +1,7 @@
import { defineStore } from 'pinia'
import type { AppState, Language, Theme } from './helper'
import { getLocalSetting, setLocalSetting } from './helper'
import { store } from '@/store'
export const useAppStore = defineStore('app-store', {
state: (): AppState => getLocalSetting(),
@@ -27,3 +28,7 @@ export const useAppStore = defineStore('app-store', {
},
},
})
export function useAppStoreWithOut() {
return useAppStore(store)
}