From db9b5763240c686cf24894830e2b0ad73c6ddaa7 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 09 Jun 2026 12:18:30 +0800
Subject: [PATCH] fix: app渲染ai框 bug
---
uniapps/work-app/src/pages/work/index.vue | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/uniapps/work-app/src/pages/work/index.vue b/uniapps/work-app/src/pages/work/index.vue
index 075c844..925aacc 100644
--- a/uniapps/work-app/src/pages/work/index.vue
+++ b/uniapps/work-app/src/pages/work/index.vue
@@ -209,9 +209,12 @@
const list = []
for (const item of response) {
// const aiImg = await drawAiImage(item.eventImageUrl, mockGeojson)
- if (item.attachmentType !== 2) return item
- const aiImg = await drawAiImage(item.eventImageUrl, item.geojson)
- list.push({ ...item, aiImg })
+ if (item.attachmentType !== 2) {
+ list.push(item)
+ }else{
+ const aiImg = await drawAiImage(item.eventImageUrl, item.geojson)
+ list.push({ ...item, aiImg })
+ }
}
dataList.value = list
// 根据当前页码决定是替换还是追加数据
--
Gitblit v1.9.3