소스 검색

fix 域名地址

zhangyinghao 1 년 전
부모
커밋
23de01c2ac
4개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      config/index.js
  2. 1 1
      src/components/Login.vue
  3. 1 1
      src/components/home/UploadShopCart.vue
  4. 1 1
      src/main.js

+ 1 - 1
config/index.js

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

+ 1 - 1
src/components/Login.vue

@@ -89,7 +89,7 @@ export default {
     //     console.log('您的浏览器支持WebSocket');
     //     // 实现化WebSocket对象,指定要连接的服务器地址与端口  建立连接
     //     let uid = this.getUid();
-    //     socket = new WebSocket('ws://localhost:8443/websocket');
+    //     socket = new WebSocket('ws://auctionuser.aiyangniu.net//websocket');
     //     // 打开事件
     //     socket.onopen = function () {
     //       console.log('Socket 已打开');

+ 1 - 1
src/components/home/UploadShopCart.vue

@@ -36,7 +36,7 @@
               :before-upload="handleBeforeUpload"
               multiple
               type="drag"
-              action="http://localhost:8443/api/uploadImage"
+              action="http://auctionuser.aiyangniu.net/api/uploadImage"
               style="display: inline-block;width:58px;">
               <div style="width:58px; height:58px; line-height:58px;">
                 <Icon type="camera" size="20"></Icon>

+ 1 - 1
src/main.js

@@ -6,7 +6,7 @@ import 'iview/dist/styles/iview.css';
 import axios from 'axios';
 import ElementUI from 'element-ui';
 import 'element-ui/lib/theme-chalk/index.css';
-axios.defaults.baseURL = 'http://localhost:8443/api';
+axios.defaults.baseURL = 'http://auctionuser.aiyangniu.net/api';
 axios.defaults.headers.post['Content-Type'] = 'application/x-www-from-urlencoded';
 
 Vue.prototype.$axios = axios;