Jelajahi Sumber

fix前端url改成域名

zhangyinghao 1 tahun lalu
induk
melakukan
5233bd0b31
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      config/index.js
  2. 1 1
      src/main.js

+ 1 - 1
config/index.js

@@ -12,7 +12,7 @@ module.exports = {
     assetsPublicPath: '/',
     proxyTable: {
       '/api': {
-        target: 'http://localhost:8432',
+        target: 'http://auctionmanager.aiyangniu.net/',
         changeOrigin: true,
         pathRewrite: {
           '^/api': ''

+ 1 - 1
src/main.js

@@ -12,7 +12,7 @@ import axios from 'axios';
 import ElementUI from 'element-ui';
 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';
 // 全局注册,之后可在其他组件中通过 this.$axios 发送数据
 Vue.prototype.$axios = axios;