将用户配置分为通用和本机

This commit is contained in:
fofolee
2022-05-07 00:53:31 +08:00
parent 91c4e48888
commit f3a2ad4a62
12 changed files with 66 additions and 93 deletions

View File

@@ -1,16 +1,22 @@
export default {
commandCardStyle: "normal",
primaryColor: "#009688",
defaultPrimaryColor: "#009688",
backgroundImg: null,
autofocusSearch: false,
denseTagBar: false,
quickFileEnable: false,
quickFileTag: "文件",
quickUrlEnable: false,
quickUrlTag: "网址",
pluNickNameEnable: false,
pluNickNameTag: "别名",
apiServerEnable: false,
apiServerPort: 33442,
common: {
commandCardStyle: "normal",
primaryColor: "#009688",
defaultPrimaryColor: "#009688",
backgroundImg: null,
autofocusSearch: false,
denseTagBar: false,
quickFileEnable: false,
quickFileTag: "文件",
quickUrlEnable: false,
quickUrlTag: "网址",
pluNickNameEnable: false,
pluNickNameTag: "别名",
apiServerEnable: false,
apiServerPort: 33442,
},
native: {
crontabs: {},
apiServerStatus: false
}
}

View File

@@ -10,7 +10,7 @@ let whole = window.utools
const DBPRE = {
QC: 'qc_', // 快捷命令
CFG: 'cfg_', // 配置
PAN: 'pan_', // 面板视图
PAN: 'panel_', // 面板视图
STATUS: 'st_', // 状态变量
USR: 'usr_' // 用户数据
}
@@ -85,5 +85,5 @@ export default {
setStorage,
getStorage,
userData,
DBPRE,
getDocs,
}