Browse Source

0108将api8080端口改为9001

liuhj 1 day ago
parent
commit
238819c5c3

+ 2 - 2
config/index.js

@@ -12,7 +12,7 @@ module.exports = {
     assetsPublicPath: '/',
     proxyTable: {
       '/api': {
-        target : 'http://132.232.92.186:8888/api',    //设置你调用的接口域名和端口号.别忘了加http
+        target : 'http://132.232.92.186:9001/api',    //设置你调用的接口域名和端口号.别忘了加http
         changeOrigin : true,   //允许跨域
         pathRewrite : {
              '^/api':'/'
@@ -21,7 +21,7 @@ module.exports = {
          }
         },
         '/chatHub': {
-          target : 'http://132.232.92.186:8888/chatHub',    //设置你调用的接口域名和端口号.别忘了加http
+          target : 'http://132.232.92.186:9001/chatHub',    //设置你调用的接口域名和端口号.别忘了加http
           changeOrigin : true,   //允许跨域
           pathRewrite : {
               '^/chatHub':'/'

+ 1 - 1
config/prod.env.js

@@ -1,5 +1,5 @@
 'use strict'
 module.exports = {
   NODE_ENV: '"production"',
-  API_HOST:'"http://132.232.92.186:8888/api"'
+  API_HOST:'"http://132.232.92.186:9001/api"'
 }

+ 1 - 1
src/App.vue

@@ -12,7 +12,7 @@ export default {
       let that = this;
       if ("WebSocket" in window) {
         console.log("您的浏览器支持 WebSocket!");
-        that.ws = new WebSocket(`ws:http://132.232.92.186:8888/api/chatHub`);
+        that.ws = new WebSocket(`ws:http://132.232.92.186:9001/api/chatHub`);
         that.$websocket.setWs(that.ws);
         that.ws.onopen = function() {
           console.log('开始连接')

+ 1 - 1
src/components/Finance/billUploading.vue

@@ -47,7 +47,7 @@
             <div class="billUploading-content-upload">
                 <el-upload
                 class="upload-demo"
-                action="http://132.232.92.186:8888/api/Groups/CommonSaveFile"
+                action="http://132.232.92.186:9001/api/Groups/CommonSaveFile"
                 :on-preview="handlePreview"
                 :on-remove="handleRemove"
                 :on-success="handleSuccess"

+ 1 - 1
src/components/OP/CarTouristGuideGroundId.vue

@@ -23,7 +23,7 @@
                         <el-button style="margin-right: 10px;" size="small" type="primary" @click="addIf">新增</el-button>
                         <!-- <el-upload
                         class="upload-demo"
-                        action="http://132.232.92.186:8888/api/Groups/CommonSaveFile"
+                        action="http://132.232.92.186:9001/api/Groups/CommonSaveFile"
                         :on-preview="handlePreview"
                         :on-remove="handleRemove"
                         :before-remove="beforeRemove"

+ 1 - 1
src/components/OP/DecreasePayments.vue

@@ -18,7 +18,7 @@
                         <el-upload
                         class="upload-demo"
                         ref="upload"
-                        action="http://132.232.92.186:8888/api/Groups/DecreasePaymentsOTAMate"
+                        action="http://132.232.92.186:9001/api/Groups/DecreasePaymentsOTAMate"
                         :on-preview="handlePreview"
                         :on-remove="handleRemove"
                         :on-success="handleSuccess"

+ 1 - 1
src/components/OP/HotelReservations.vue

@@ -874,7 +874,7 @@ export default {
             currentPage: 1, // 当前页码
             pageSize: 5,// 每页的数据条数
             gridData: [],
-            uploadURL: "http://132.232.92.186:8888/api/Groups/UploadHotel",
+            uploadURL: "http://132.232.92.186:9001/api/Groups/UploadHotel",
             projectName: "",
             uploadFiles: [],//上传的文件列表
             DelfileName: "",

+ 1 - 1
src/components/OP/OpCustomers.vue

@@ -317,7 +317,7 @@ export default {
             userId: 0,
             id: '',
             isShow: false,
-            uploadURL: "http://132.232.92.186:8888/api/Groups/UploadCus",
+            uploadURL: "http://132.232.92.186:9001/api/Groups/UploadCus",
             headers: {
                 Authorization: JSON.parse(localStorage.getItem('userinif')).token,
             },

+ 1 - 1
src/components/OP/OpDecreasePayments.vue

@@ -248,7 +248,7 @@ export default {
     data() {
         return {
             projectName: "",
-            uploadURL: "http://132.232.92.186:8888/api/Groups/UploadProject",
+            uploadURL: "http://132.232.92.186:9001/api/Groups/UploadProject",
             uploadFiles: [],//上传的文件列表
             DelfileName: "",
             title: "新增其他款项",

+ 1 - 1
src/components/OP/OpInvitationOfficialActivities.vue

@@ -429,7 +429,7 @@ var namewy = (rule, value, callback) => {
 export default {
     data() {
         return {
-            uploadURL: "http://132.232.92.186:8888/api/Groups/UploadProject",
+            uploadURL: "http://132.232.92.186:9001/api/Groups/UploadProject",
             projectName: [],
             uploadFiles: [],//上传的文件列表
             DelfileName: "",

+ 1 - 1
src/components/Resource/OpInvitationOfficialActivityData.vue

@@ -237,7 +237,7 @@ export default {
             },
             DelegationList: [],
             uploadFiles: [],//上传的文件列表
-            uploadURL: "http://132.232.92.186:8888/api/Groups/UploadProject",
+            uploadURL: "http://132.232.92.186:9001/api/Groups/UploadProject",
             headers: {
                 Authorization: JSON.parse(localStorage.getItem('userinif')).token,
                 TypeName: "B"

+ 1 - 1
src/components/Resource/OpOfficialActivities.vue

@@ -650,7 +650,7 @@ export default {
             uploadFiles2: [],
             uploadFiles3: [],
             Emailscreenshot:[],
-            Emailscreenshoturl:'http://132.232.92.186:8888/api/Resource/OfficialActivitiesUploadFiles',
+            Emailscreenshoturl:'http://132.232.92.186:9001/api/Resource/OfficialActivitiesUploadFiles',
             Emailscreenshotdata:{
                 id:0,
                 diId:0,

+ 1 - 1
src/components/child/test.vue

@@ -12,7 +12,7 @@
   import * as signalR from "@aspnet/signalr";
   
   let token=JSON.parse(localStorage.getItem('userinif')).token;
-  let hubUrl = "http://132.232.92.186:8888/chatHub";
+  let hubUrl = "http://132.232.92.186:9001/chatHub";
   
   //.net core 版本中默认不会自动重连,需手动调用 withAutomaticReconnect 
   const connection = new signalR.HubConnectionBuilder()

+ 2 - 1
src/main.js

@@ -29,7 +29,8 @@ Vue.use(VueTypedJs)
 
 
 import axios from 'axios';
-axios.defaults.baseURL = 'http://132.232.92.186:8888';
+axios.defaults.baseURL = 'http://132.232.92.186:9001';
+// axios.defaults.baseURL = 'http://132.232.92.186:9001';
 //axios.defaults.baseURL = 'http://localhost:5256/';
 import { Message } from "element-ui";
 

+ 1 - 1
src/store/index.js

@@ -982,7 +982,7 @@ const store = new Vuex.Store({
             console.log(form)
             return new Promise((resolve,reject)=>{//Promise异步任务执行 抛出错误
                 axios.post(//axios的基本操作
-                "http://132.232.92.186:8888/api/login",
+                "http://132.232.92.186:9001/api/login",
                 `number=${form.number}&password=${form.password}`
                 ).then(result=>{
                 console.log(result)

+ 1 - 1
src/store/websocket.js

@@ -9,7 +9,7 @@
 // // <!--封装websocket对象-->
 // const WS = {
 //     $ws:null, // webscoket实例
-//     wsUrl: 'http://132.232.92.186:8888/api/chatHub', // websocket链接地址
+//     wsUrl: 'http://132.232.92.186:9001/api/chatHub', // websocket链接地址
 //     // <!--初始化webSocket-->
 //     createWS:function(){
 //         if('WebSocket' in window){