mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-25 03:59:30 +08:00
数据存储结构调整
This commit is contained in:
@@ -10,24 +10,19 @@ let defaultProfile = {
|
||||
primaryColor: "#009688",
|
||||
defaultPrimaryColor: "#009688",
|
||||
backgroundImg: null,
|
||||
codeHistory: {}
|
||||
}
|
||||
let userProfile = UTOOLS.getDB(
|
||||
UTOOLS.DBPRE.CFG + "preferences"
|
||||
);
|
||||
Object.assign(defaultProfile, userProfile)
|
||||
utools.onPluginOut(() => {
|
||||
UTOOLS.putDB(
|
||||
defaultProfile,
|
||||
UTOOLS.DBPRE.CFG + "preferences"
|
||||
);
|
||||
});
|
||||
|
||||
// "async" is optional;
|
||||
// more info on params: https://v2.quasar.dev/quasar-cli/boot-files
|
||||
export default boot(async ({
|
||||
export default boot(async({
|
||||
app
|
||||
}) => {
|
||||
app.config.globalProperties.$utools = UTOOLS
|
||||
app.config.globalProperties.$programmings = programmings
|
||||
app.config.globalProperties.$profile = defaultProfile
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user