From dc258e4600bea2fba1e25054d163a2f4b1326a85 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 08 八月 2023 10:23:38 +0800 Subject: [PATCH] 2023-08-08 --- src/tabviews/custom/components/calendar/index.jsx | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tabviews/custom/components/calendar/index.jsx b/src/tabviews/custom/components/calendar/index.jsx index 52c638a..43b7021 100644 --- a/src/tabviews/custom/components/calendar/index.jsx +++ b/src/tabviews/custom/components/calendar/index.jsx @@ -91,10 +91,10 @@ if (config.$cache && !this.loaded) { Api.getLCacheConfig(config.uuid).then(res => { - if (!res || this.loaded) return + if (!res.data || this.loaded) return let data = [] - res.forEach((item, index) => { + res.data.forEach((item, index) => { item.key = index item.$$uuid = item[config.setting.primaryKey] || '' -- Gitblit v1.8.0