浏览代码

fix: #图片按照`,`切割分组

loki 3 年之前
父节点
当前提交
5d6b000c2c
共有 1 个文件被更改,包括 4 次插入8 次删除
  1. 4 8
      src/views/baseManagement/problemFeedbackManagement/index.vue

+ 4 - 8
src/views/baseManagement/problemFeedbackManagement/index.vue

@@ -59,14 +59,10 @@ export default {
           name: '反馈图片',
           name: '反馈图片',
           width: '100',
           width: '100',
           render: (h, { row }) => {
           render: (h, { row }) => {
-            // const list = row.imgUrl.map(x => ({
-            //   src: x
-            // }));
-            const list = [
-              {
-                src: row.imgUrl
-              }
-            ];
+            const items = row.imgUrl.split(',');
+            const list = items.map(x => ({
+              src: x
+            }));
             if (list.length > 0) {
             if (list.length > 0) {
               return h('img', {
               return h('img', {
                 style: {
                 style: {