增加测试环境,依赖去除pulic/config.json

master
wj 2 years ago
parent e575022c49
commit f6932b4fd0

@ -25,12 +25,12 @@ Object.keys(filters).forEach(key => {
Vue.config.productionTip = false;
let getUrl = "";
let BASE_URL = process.env.VUE_APP_API_BASE;
let url = process.env.VUE_APP_API_BASE;
let startApp = function() {
console.log(window.global_config.BASE_URL);
// axios.get("./config.json").then(res => {
// 基础地址
getUrl = BASE_URL;
getUrl = url;
myReq.defaults.baseURL = getUrl;
// mySock.ws_url = res.data.BASE_URL2;
console.log( res.data.BASE_URL+"\n"+ res.data.BASE_URL2)

Loading…
Cancel
Save