From cb2064b437fa5b9fbccf3eede01be1c49abdb201 Mon Sep 17 00:00:00 2001 From: Cool <747682928@qq.com> Date: Wed, 6 Dec 2023 00:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=98=B5=E7=A7=B0=E5=8A=9F=E8=83=BD=EF=BC=8C=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/request.js | 3 +- src/views/main/Chat.vue | 8 +- src/views/main/Index.vue | 269 +++++++++++++++++++++++++++++++++++++-- 3 files changed, 268 insertions(+), 12 deletions(-) diff --git a/src/store/request.js b/src/store/request.js index c916c2c..45b9b82 100644 --- a/src/store/request.js +++ b/src/store/request.js @@ -4,7 +4,8 @@ import { Message } from "element-ui"; //创建axios实例 const axiosInstance = axios.create({ - baseURL: 'http://localhost:8887', // 设置默认发送地址为后端端口 + // baseURL: 'http://119.29.254.99:8887', // 设置默认发送地址为后端端口 + baseURL: 'http://localhost:8887', }); //添加拦截器,在每次ajax之前都会执行这个操作 diff --git a/src/views/main/Chat.vue b/src/views/main/Chat.vue index 6244331..6be2dc2 100644 --- a/src/views/main/Chat.vue +++ b/src/views/main/Chat.vue @@ -8,7 +8,7 @@
{{ message.nickname }} {{ message.sendTime }}
已登录用户{{ myName }}