xy 1 неделя назад
Родитель
Сommit
8cf33ba8f3
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      yudao-ui-admin-vue3/src/components/DynamicReport/SpreadViewer.vue

+ 1 - 1
yudao-ui-admin-vue3/src/components/DynamicReport/SpreadViewer.vue

@@ -376,7 +376,7 @@ const openPdf = async () => {
   const rules = []
   previewSpread.sheets.forEach((sheet) => {
     sheet.conditionalFormats.getRules().forEach(rule => {
-      if (rule.condition().formula() == 'TRUE') {
+      if (rule.condition() && rule.condition().formula() == 'TRUE') {
         console.log(rule)
         rules.push({
           sheet,