|
@@ -12,7 +12,7 @@ import axios from 'axios';
|
|
import ElementUI from 'element-ui';
|
|
import ElementUI from 'element-ui';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
import 'element-ui/lib/theme-chalk/index.css';
|
|
|
|
|
|
-axios.defaults.baseURL = 'http://localhost:8432/api';
|
|
|
|
|
|
+axios.defaults.baseURL = 'http://auctionmanager.aiyangniu.net/api';
|
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-from-urlencoded';
|
|
axios.defaults.headers.post['Content-Type'] = 'application/x-www-from-urlencoded';
|
|
// 全局注册,之后可在其他组件中通过 this.$axios 发送数据
|
|
// 全局注册,之后可在其他组件中通过 this.$axios 发送数据
|
|
Vue.prototype.$axios = axios;
|
|
Vue.prototype.$axios = axios;
|