🐛 Fix(custom): fix an issue eslint not worked as expected

This commit is contained in:
Kuingsmile
2025-12-30 13:20:28 +08:00
parent 4fb5a26270
commit b53eccce13
185 changed files with 8014 additions and 7627 deletions

View File

@@ -16,14 +16,14 @@ export const storeKey: InjectionKey<IStore> = Symbol('store')
// state
const state: IState = reactive({
defaultPicBed: 'smms'
defaultPicBed: 'smms',
})
// methods
const setDefaultPicBed = (type: string) => {
saveConfig({
[configPaths.picBed.current]: type,
[configPaths.picBed.uploader]: type
[configPaths.picBed.uploader]: type,
})
state.defaultPicBed = type
}
@@ -32,7 +32,7 @@ export const store = {
install(app: App) {
app.provide(storeKey, {
state: readonly(state),
setDefaultPicBed
setDefaultPicBed,
})
}
},
}