From 64098481318dae1b1efa91dd8db2af0d6c40802a Mon Sep 17 00:00:00 2001 From: jscyl13849007907 <13849007907@163.com> Date: Thu, 21 May 2026 18:30:10 +0800 Subject: [PATCH] no message --- root/detail/job.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/root/detail/job.vue b/root/detail/job.vue index 76ce6f2..d1bd73c 100644 --- a/root/detail/job.vue +++ b/root/detail/job.vue @@ -1145,14 +1145,16 @@ export default { res.monthPay = res.minMonthlyPay / 100 + "-" + res.maxMonthlyPay / 100; res.updateTime = that.G.setDeadLine(res.updateTime, "jiaofu"); // console.log("res.images", res.images); + // 过滤掉视频格式的数据,只保留图片 + let imageList = res.images.filter((item) => !item.url || item.url.indexOf(".mp4") === -1); that.swiperArray = - res.images.length == 0 + imageList.length == 0 ? [] - : res.images.map((item, index) => { + : imageList.map((item, index) => { return { id: index + 1, image: item.url, - type: item.url.indexOf(".mp4") > -1 ? "video" : "image", + type: "image", }; }); if (res.logo) {