不再统计命令使用详细数据

This commit is contained in:
fofolee
2024-01-23 13:39:56 +08:00
parent be8b38f94d
commit 6fd5b87a33
2 changed files with 50 additions and 33 deletions

View File

@@ -170,10 +170,7 @@ export default {
methods: {
getUserInfo() {
Object.assign(this.userInfo, this.$root.utools.whole.getUser());
let statisticsData = this.$root.utools.getDB("cfg_statisticsData");
this.userInfo.exp = Object.values(statisticsData)
.map((x) => x.length)
.reduce((x, y) => x + y);
this.userInfo.exp = this.$root.utools.getDB("cfg_exp");
this.userInfo.level = this.levelDetail
.filter((x) => this.userInfo.exp > x.minExp)
.pop().lv;