lighter 1 年之前
父节点
当前提交
9519a20adc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/hospitalization/adverse-event/component/EventPrinter.vue

+ 1 - 1
src/views/hospitalization/adverse-event/component/EventPrinter.vue

@@ -130,7 +130,7 @@ const props = defineProps({
 
 const reasonAndProFilter = (arr, input) => {
   let temp = ''
-  if (arr.length === 0) {
+  if (!arr || arr.length === 0) {
     if (!input) {
       return temp
     }