diff --git a/src/assets/api.js b/src/assets/api.js index c15181a6..08f99ad2 100644 --- a/src/assets/api.js +++ b/src/assets/api.js @@ -3,7 +3,7 @@ import {Notify} from "zent" // window.baseurl = 'https://marketapi.1688sup.com'; let baseurl; -if (process.env.NODE_ENV == "development") { // 测试环境 +if (process.env.NODE_ENV == "test") { // 测试环境 baseurl = "http://192.168.6.75" } if (process.env.NODE_ENV == "production") { // 生成环境 diff --git a/src/pages/exchangecode/commodity/commodity.js b/src/pages/exchangecode/commodity/commodity.js index 7d0a78e5..453b98d0 100644 --- a/src/pages/exchangecode/commodity/commodity.js +++ b/src/pages/exchangecode/commodity/commodity.js @@ -188,7 +188,7 @@ export default class commoditylist extends React.Component{ _self.getTableList(data);//更新列表 },(err)=>{ - + Notify.error(err); }) }).catch(err=>{ }); diff --git a/src/pages/exchangecode/list/list.js b/src/pages/exchangecode/list/list.js index 3aee47b8..c88bc36d 100644 --- a/src/pages/exchangecode/list/list.js +++ b/src/pages/exchangecode/list/list.js @@ -217,8 +217,6 @@ export default class acclist extends React.Component{ Notify.clear(); Notify.success(msg); self.getCodeListFn(); - - },(err)=>{ Notify.error(err); }) @@ -247,7 +245,7 @@ export default class acclist extends React.Component{ Notify.success(msg); self.getCodeListFn(); },(err)=>{ - + Notify.error(err); }) }).catch(err=>{ });