CzRger 6 months ago
parent
commit
51d280ccd0
1 changed files with 5 additions and 1 deletions
  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('&')}`