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

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

@@ -170,9 +170,7 @@ export default {
methods: {
getUserInfo() {
Object.assign(this.userInfo, this.$root.utools.whole.getUser());
let statisticsData = this.$root.utools.getDB(
this.$root.utools.DBPRE.CFG + "statisticsData"
);
let statisticsData = this.$root.utools.getDB("cfg_statisticsData");
this.userInfo.exp = Object.values(statisticsData)
.map((x) => x.length)
.reduce((x, y) => x + y);