CzRger 7 月之前
父节点
当前提交
51d280ccd0
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/views/web/list/index.vue

+ 5 - 1
src/views/web/list/index.vue

@@ -418,7 +418,11 @@ const toArchive = (item) => {
       if (tableConfigCpt.value.themeField) {
         let p = []
         JSON.parse(tableConfigCpt.value.themeField).forEach(v => {
-          p.push(`${v.themeParam}=${item[v.fieldParam].replace(/<em>|<\/em>/g, '')}`)
+          if (item[v.fieldParam]) {
+            p.push(`${v.themeParam}=${item[v.fieldParam].replace(/<em>|<\/em>/g, '')}`)
+          } else {
+            console.log('无效的参数匹配', v.themeParam, v.fieldParam, item)
+          }
         })
         if (p.length > 0) {
           url += `?${p.join('&')}`