zxl
2026-03-23 b924e4fe906c3e1b4e804ed9d073e09db76fc710
src/views/dashboard/Analysis.vue
@@ -198,10 +198,15 @@
        .then((imageRes) => {
          if (imageRes.code === 200 && Array.isArray(imageRes.result) && imageRes.result.length) {
            return recordList.map((item, index) => {
              return {
              const newItem = {
                ...item,
                imgPath: imageRes.result[index % imageRes.result.length],
              }
              if (item.videoPath && item.videoPath.startsWith('/video/')) {
                const baseUrl = window.location.origin
                newItem.videoPath = baseUrl + '/cube/jyz/video/stream/' + item.videoPath.replace('/video/', '')
              }
              return newItem
            })
          }
          return recordList