chore: 更新后端服务端口从8082改为8073
This commit is contained in:
parent
52a1f58f78
commit
e8009a845c
2
App.vue
2
App.vue
|
|
@ -109,7 +109,7 @@ export default {
|
|||
window.location.protocol.indexOf("https") === 0 ? "wss" : "ws";
|
||||
const Id =
|
||||
(this.vuex_user && (this.vuex_user.id || this.vuex_user.Id)) || "";
|
||||
return `${protocol}://120.55.234.65:8082/api/Dialogue/HandleConnection?Id=${Id}`; // &equipmentType=0
|
||||
return `${protocol}://120.55.234.65:8073/api/Dialogue/HandleConnection?Id=${Id}`; // &equipmentType=0
|
||||
},
|
||||
// 初始化原生 WebSocket 连接
|
||||
initWebSocket() {
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ const install = (Vue, vm) => {
|
|||
Vue.prototype.$u.http.setConfig({
|
||||
// baseUrl: 'https://xy.apps.service.zheke.com',
|
||||
// imgUrl: 'https://xy.apps.service.zheke.com/',
|
||||
baseUrl: "http://120.55.234.65:8082",
|
||||
imgUrl: "http://120.55.234.65:8082/",
|
||||
baseUrl: "http://120.55.234.65:8073",
|
||||
imgUrl: "http://120.55.234.65:8073/",
|
||||
// imgUrl:'http://115.238.47.235:8987/',
|
||||
// baseUrl: 'http://115.238.47.235:8993',
|
||||
// 如果将此值设置为true,拦截回调中将会返回服务端返回的所有数据response,而不是response.data
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ const getWebSocketUrl = () => {
|
|||
// #ifdef H5
|
||||
// H5 开发环境
|
||||
if (process.env.NODE_ENV === 'development') {
|
||||
return 'ws://localhost:8082/ws/chat'
|
||||
return 'ws://localhost:8073/ws/chat'
|
||||
}
|
||||
// H5 生产环境
|
||||
return 'wss://120.55.234.65:8082/ws/chat'
|
||||
return 'wss://120.55.234.65:8073/ws/chat'
|
||||
// #endif
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ export default {
|
|||
|
||||
// 本地服务器测试
|
||||
testLocalServer() {
|
||||
this.wsUrl = 'ws://localhost:8082/ws/chat?token=test-token'
|
||||
this.wsUrl = 'ws://localhost:8073/ws/chat?token=test-token'
|
||||
this.messageToSend = JSON.stringify({
|
||||
type: 'message',
|
||||
fromUserId: 'test_user',
|
||||
|
|
|
|||
Loading…
Reference in New Issue