|
|
|
@ -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,
|
|
|
|
|