Explorar o código

保存报错信息显示

zhouna %!s(int64=6) %!d(string=hai) anos
pai
achega
aaa70a487f
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  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)),