From 783b99e90a91540d7b05a777b838b183558d50d1 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期五, 27 六月 2025 09:22:03 +0800 Subject: [PATCH] 测试完成 --- src/components/Regular/index.vue | 4 +++- src/views/knowledge/questionbank/particulars/index.vue | 8 ++++++-- src/views/knowledge/questionnaire/compilequer/index.vue | 8 ++++++-- 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/components/Regular/index.vue b/src/components/Regular/index.vue index 8985f3e..30d359f 100644 --- a/src/components/Regular/index.vue +++ b/src/components/Regular/index.vue @@ -197,7 +197,9 @@ <el-image style="width: 100px; height: 100px" :src="item.picturePath" - :preview-src-list="[...item.picturePath]" + :preview-src-list=" + item.picturePath ? [item.picturePath] : [] + " > </el-image> </div> diff --git a/src/views/knowledge/questionbank/particulars/index.vue b/src/views/knowledge/questionbank/particulars/index.vue index d0f507d..b64788a 100644 --- a/src/views/knowledge/questionbank/particulars/index.vue +++ b/src/views/knowledge/questionbank/particulars/index.vue @@ -328,7 +328,9 @@ <el-image style="width: 100px; height: 100px" :src="topicobj.picturePath" - :preview-src-list="[...topicobj.picturePath]" + :preview-src-list=" + topicobj.picturePath ? [topicobj.picturePath] : [] + " > </el-image> </div> @@ -518,7 +520,9 @@ <el-image style="width: 100px; height: 100px" :src="item.picturePath" - :preview-src-list="[...item.picturePath]" + :preview-src-list=" + item.picturePath ? [item.picturePath] : [] + " > </el-image> </div> diff --git a/src/views/knowledge/questionnaire/compilequer/index.vue b/src/views/knowledge/questionnaire/compilequer/index.vue index 6d2bd8b..a0b408c 100644 --- a/src/views/knowledge/questionnaire/compilequer/index.vue +++ b/src/views/knowledge/questionnaire/compilequer/index.vue @@ -691,7 +691,9 @@ <el-image style="width: 100px; height: 100px" :src="item.picturePath" - :preview-src-list="[...item.picturePath]" + :preview-src-list=" + item.picturePath ? [item.picturePath] : [] + " > </el-image> </div> @@ -1212,7 +1214,9 @@ <el-image style="width: 100px; height: 100px" :src="item.picturePath" - :preview-src-list="[...item.picturePath]" + :preview-src-list=" + item.picturePath ? [item.picturePath] : [] + " > </el-image> </div> -- Gitblit v1.9.3