|
|
|
@ -19,7 +19,7 @@ import {addDateRange,selectDictLabel} from '@/utils/tools';
|
|
|
|
|
|
|
|
|
|
import "./assets/icons/iconfont";
|
|
|
|
|
import IconSvg from "./components/common/IconSvg.vue"; // svg组件
|
|
|
|
|
import { BASE_URL } from "./config/app"
|
|
|
|
|
// import { BASE_URL } from "./config/app"
|
|
|
|
|
import axios from "axios";
|
|
|
|
|
import "../public/config.json";
|
|
|
|
|
import myReq from "./utils/axios"
|
|
|
|
@ -37,18 +37,22 @@ Vue.config.silent = true;
|
|
|
|
|
Vue.config.productionTip = false;
|
|
|
|
|
Vue.prototype.selectDictLabel = selectDictLabel;
|
|
|
|
|
let getUrl = "";
|
|
|
|
|
let url = process.env.VUE_APP_API_BASE;
|
|
|
|
|
let startApp = function () {
|
|
|
|
|
axios.get('./config.json').then((res) => {
|
|
|
|
|
// axios.get('./config.json').then((res) => {
|
|
|
|
|
// 基础地址
|
|
|
|
|
getUrl = res.data.BASE_URL;
|
|
|
|
|
getUrl = url;
|
|
|
|
|
myReq.defaults.baseURL = getUrl;
|
|
|
|
|
// // 基础地址
|
|
|
|
|
// getUrl = res.data.BASE_URL;
|
|
|
|
|
// myReq.defaults.baseURL = getUrl;
|
|
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
|
router,
|
|
|
|
|
store,
|
|
|
|
|
render: h => h(App)
|
|
|
|
|
}).$mount("#app");
|
|
|
|
|
});
|
|
|
|
|
// });
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
startApp();
|
|
|
|
|