This commit is contained in:
parent
39f6f61b24
commit
72acf266a5
|
@ -3,7 +3,7 @@ import {Notify} from "zent"
|
||||||
// window.baseurl = 'https://marketapi.1688sup.com';
|
// window.baseurl = 'https://marketapi.1688sup.com';
|
||||||
|
|
||||||
let baseurl;
|
let baseurl;
|
||||||
if (process.env.NODE_ENV == "development") { // 测试环境
|
if (process.env.NODE_ENV == "test") { // 测试环境
|
||||||
baseurl = "http://192.168.6.75"
|
baseurl = "http://192.168.6.75"
|
||||||
}
|
}
|
||||||
if (process.env.NODE_ENV == "production") { // 生成环境
|
if (process.env.NODE_ENV == "production") { // 生成环境
|
||||||
|
|
|
@ -188,7 +188,7 @@ export default class commoditylist extends React.Component{
|
||||||
|
|
||||||
_self.getTableList(data);//更新列表
|
_self.getTableList(data);//更新列表
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
|
Notify.error(err);
|
||||||
})
|
})
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
});
|
});
|
||||||
|
|
|
@ -217,8 +217,6 @@ export default class acclist extends React.Component{
|
||||||
Notify.clear();
|
Notify.clear();
|
||||||
Notify.success(msg);
|
Notify.success(msg);
|
||||||
self.getCodeListFn();
|
self.getCodeListFn();
|
||||||
|
|
||||||
|
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
Notify.error(err);
|
Notify.error(err);
|
||||||
})
|
})
|
||||||
|
@ -247,7 +245,7 @@ export default class acclist extends React.Component{
|
||||||
Notify.success(msg);
|
Notify.success(msg);
|
||||||
self.getCodeListFn();
|
self.getCodeListFn();
|
||||||
},(err)=>{
|
},(err)=>{
|
||||||
|
Notify.error(err);
|
||||||
})
|
})
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue