Prechádzať zdrojové kódy

回读/引用不同模式后保存再引用bug修改2165

zhouna 5 rokov pred
rodič
commit
5dc77bb85d
2 zmenil súbory, kde vykonal 4 pridanie a 2 odobranie
  1. 3 1
      src/store/async-actions/print.js
  2. 1 1
      src/utils/config.js

+ 3 - 1
src/store/async-actions/print.js

@@ -13,8 +13,10 @@ import {
 
 export const saveMessage = (bool) => {
     let baseList = store.getState();
+    const readMode = baseList.typeConfig.readMode;          //回读模式
     let state = baseList.patInfo.message;
-    let whichSign = baseList.typeConfig.typeConfig;
+    //保存时保存当前的数据实际模式,不是系统模式,针对回读模式与系统模式不一致的情况处理
+    let whichSign = readMode===-1||readMode===null?baseList.typeConfig.typeConfig:readMode;
     const pushMessage = baseList.pushMessage;
     let jsonStr = getAllDataStringList(baseList);
     let jsonData = getAllDataList(baseList);

+ 1 - 1
src/utils/config.js

@@ -2,7 +2,7 @@
 // const host='http://192.168.3.100:5050';//王峰
 // const host='http://192.168.2.236:5050';//后端接口访问地址
 // const host='http://192.168.2.121:5050';//后端接口访问地址
-const host='http://192.168.2.121:5050';//后端接口访问地址
+const host='http://192.168.2.241:5050';//后端接口访问地址
 // const host='http://192.168.3.11:5050';//王宇
 //const host='http://192.168.2.164:8080';
 // const host='http://192.168.3.117:5050'; //周铁刚