Jelajahi Sumber

保存报错信息显示

zhouna 6 tahun lalu
induk
melakukan
aaa70a487f
1 mengubah file dengan 4 tambahan dan 2 penghapusan
  1. 4 2
      src/store/async-actions/print.js

+ 4 - 2
src/store/async-actions/print.js

@@ -79,9 +79,11 @@ export const saveMessage = (bool) => {
                 Notify.success('历史病历保存成功');
             }
         } else {
-            console.log(res)
+          Notify.info(data.msg);
         }
-    })
+    }).catch(function(){
+        Notify.info('保存失败,请稍后再试!');
+    });
     if(bool){
         json('/printRecord/savePrintRecords', {
             "dataJson": JSON.stringify(getAllDataList(baseList)),