修复taskList字段名兼容问题
This commit is contained in:
parent
8b737f4cb0
commit
2f7f73c3c5
|
|
@ -341,14 +341,15 @@
|
|||
|
||||
if (res.status == 1) {
|
||||
this.userinfo = res.data.userinfo
|
||||
this.taskList = res.data.task_list
|
||||
// 兼容驼峰和下划线命名
|
||||
this.taskList = res.data.taskList || res.data.task_list || []
|
||||
|
||||
console.log("=== 赋值后 this.userinfo ===");
|
||||
console.log("this.userinfo:", JSON.stringify(this.userinfo));
|
||||
console.log("this.userinfo.money:", this.userinfo?.money);
|
||||
|
||||
uni.setStorageSync('userinfo', this.userinfo)
|
||||
uni.setStorageSync('corpid', res.data.other.corpid)
|
||||
uni.setStorageSync('corpid', res.data.other?.corpid)
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user