Sfoglia il codice sorgente

修复开转科医嘱问题

xiaochan 1 anno fa
parent
commit
bb5d7ad3f2

+ 2 - 2
src/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/yz-edit/YzEditor.vue

@@ -419,7 +419,7 @@ const drugDefaultValue = async (isSearch: boolean, data: SearchOrdersType | YzTy
     clearAndErrorMessage('请联系管理员。')
   })
 
-  yzInfoPrompt.value = prompt
+  yzInfoPrompt.value = XEUtils.isArray(prompt) ? prompt : []
 
   const drugKey = `${data.orderCode}_${data.serial}`;
 
@@ -503,7 +503,7 @@ const itemDefaultValue = (isSearch: boolean, data: SearchOrdersType | YzType) =>
     clearAndErrorMessage('请联系管理员。')
   })
 
-  yzInfoPrompt.value = prompt
+  yzInfoPrompt.value = XEUtils.isArray(prompt) ? prompt : []
 
   if (isSearch) {
     setYzData('dose', 1)