🔨 Refactor: most config handle by picgo-core

for config syncing with picgo-core && picgo-plugins
This commit is contained in:
Molunerfinn
2019-12-26 20:15:41 +08:00
parent fec4360043
commit 3418560c63
30 changed files with 294 additions and 232 deletions

View File

@@ -59,7 +59,7 @@ class DB {
return this.read().get(key).insert(value).write()
}
unset (key: string, value: any): boolean {
return this.read().get(key).unset(value).write()
return this.read().get(key).unset(value).value()
}
}

View File

@@ -8,5 +8,6 @@ declare module 'vue/types/vue' {
$db: typeof db
$http: typeof axios
$builtInPicBed: string[]
letPicGoSaveData(data: IObj): void
}
}

View File

@@ -162,7 +162,7 @@ interface IShowInputBoxOption {
type IShowFileExplorerOption = IObj
type IUploadOption = undefined | string[]
type IUploadOption = string[]
interface IShowNotificationOption {
title: string