mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-22 08:47:06 +08:00
🚧 WIP(custom): v3.0.0 migrate to vite and esm
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { reactive, InjectionKey, readonly, App, UnwrapRef } from 'vue'
|
||||
import { App, InjectionKey, reactive, readonly, UnwrapRef } from 'vue'
|
||||
|
||||
import { saveConfig } from '@/utils/dataSender'
|
||||
import { configPaths } from '#/utils/configPaths'
|
||||
|
||||
@@ -28,7 +29,7 @@ const setDefaultPicBed = (type: string) => {
|
||||
}
|
||||
|
||||
export const store = {
|
||||
install(app: App) {
|
||||
install (app: App) {
|
||||
app.provide(storeKey, {
|
||||
state: readonly(state),
|
||||
setDefaultPicBed
|
||||
|
||||
Reference in New Issue
Block a user