瀏覽代碼

change: indent商品列表图片数据增加容错处理.

peter 3 月之前
父節點
當前提交
94de1fb55d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/pages/indent-manage/product/list.vue

+ 1 - 1
src/pages/indent-manage/product/list.vue

@@ -363,7 +363,7 @@ const getList = () => {
     .then((res: any) => {
       list.value =
         res.result?.data?.map((main: any) => {
-          const t = main.images.split(',').filter((i: string) => i.length > 0)
+          const t = `${main.images}`.split(',').filter((i: string) => i.length > 0)
           let status = Number(main.status)
           if (typeof status !== 'number') status = 0
           return {