Procházet zdrojové kódy

http 地址 根据localhost获取

zhangsijie před 2 roky
rodič
revize
d875d08dfb
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      pingpu_vue/src/main.js

+ 2 - 1
pingpu_vue/src/main.js

@@ -24,7 +24,8 @@ const Qs = require("qs");
 Vue.prototype.$axios = axios;
 // import qs from 'qs'
 Vue.prototype.qs = Qs; // 全局注册,使用方法为:this.qs
-Vue.prototype.$http = "http://106.119.196.18:10004";
+// Vue.prototype.$http = "http://106.119.196.18:10004";
+Vue.prototype.$http = window.location.host;
 /* eslint-disable no-new */
 const ElementUI = require("element-ui");
 Vue.use(ElementUI);