调整地址

dev
wj 2 years ago
parent a6c407aeea
commit d04ed03e6f

@ -388,11 +388,12 @@ export default {
});
},
init() {
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
this.uploadFileUrl = response + "/udiwms/busstiness/file/upload";
});
// axios.get("./config.json").then(res => {
// //
// let response = res.data.BASE_URL;
// this.uploadFileUrl = response + "/udiwms/busstiness/file/upload";
// });
this.uploadFileUrl = process.env.VUE_APP_API_BASE +"/udiwms/busstiness/file/upload";
this.headers = {
ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token,

@ -840,11 +840,12 @@ export default {
}
},
init() {
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
this.uploadFileUrl = response + "/spms/inv/warehouse/uploadJson";
});
// axios.get("./config.json").then(res => {
// //
// let response = res.data.BASE_URL;
// this.uploadFileUrl = response + "/spms/inv/warehouse/uploadJson";
// });
this.uploadFileUrl = process.env.VUE_APP_API_BASE +"/spms/inv/warehouse/uploadJson";
this.headers = {
ADMIN_ID: store.getters.adminId,
ADMIN_TOKEN: store.getters.token

Loading…
Cancel
Save