This commit is contained in:
姜棚 2021-12-03 15:12:11 +08:00
parent 39f6f61b24
commit 72acf266a5
3 changed files with 3 additions and 5 deletions

View File

@ -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") { // 生成环境

View File

@ -188,7 +188,7 @@ export default class commoditylist extends React.Component{
_self.getTableList(data);//更新列表
},(err)=>{
Notify.error(err);
})
}).catch(err=>{
});

View File

@ -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=>{
});