调整地址

dev
wj 2 years ago
parent a6c407aeea
commit d04ed03e6f

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

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

Loading…
Cancel
Save