From a6e80328f1942db6e2d630417a74eea05651c775 Mon Sep 17 00:00:00 2001 From: ingkele <598792849@qq.com> Date: Fri, 23 Oct 2026 21:45:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=AF=E5=88=86=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E5=88=97=E5=85=BC=E5=AE=B9=E8=81=94=E8=A1=A8?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E5=AF=B9=E8=B1=A1=E5=BD=A2=E6=80=81=EF=BC=88?= =?UTF-8?q?vk=20limit:1=20=E8=BF=94=E5=9B=9E=E5=AF=B9=E8=B1=A1=E9=9D=9E?= =?UTF-8?q?=E6=95=B0=E7=BB=84=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/points/log/list.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/points/log/list.vue b/pages/points/log/list.vue index 287f1eb..c996320 100644 --- a/pages/points/log/list.vue +++ b/pages/points/log/list.vue @@ -37,7 +37,9 @@ export default { align: "left", width: 200, formatter: (val, row) => { - const user = row.userInfo && row.userInfo[0] ? row.userInfo[0] : null; + // vk 联表 limit:1 返回对象而非数组,两种形态兼容 + const raw = row.userInfo; + const user = Array.isArray(raw) ? (raw[0] || null) : (raw || null); const mobile = user && user.mobile ? user.mobile : "-"; if (user) { const name = user.nickname || user.username || "未设置昵称";