From 2f7f73c3c590ff200ce8006990efe4302956ae4d Mon Sep 17 00:00:00 2001 From: gpu Date: Thu, 22 Jan 2026 02:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DtaskList=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E5=85=BC=E5=AE=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- honey_box/pages/user/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/honey_box/pages/user/index.vue b/honey_box/pages/user/index.vue index 792e7c4a..b5b802ba 100644 --- a/honey_box/pages/user/index.vue +++ b/honey_box/pages/user/index.vue @@ -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) } },