From baf267e1ba8f7521525ea8e8c15d78041574d694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Fri, 30 Aug 2024 15:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=8A=E5=A4=A9=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 4 +- src/utils/enumData.js | 6 ++- src/utils/httpRequest.js | 3 +- src/views/vueMchat/vueMchat.vue | 92 +++++++++++++++++++++++++++------ 4 files changed, 86 insertions(+), 19 deletions(-) diff --git a/config/index.js b/config/index.js index 74c1ca1..b986df1 100644 --- a/config/index.js +++ b/config/index.js @@ -14,7 +14,9 @@ module.exports = { // 代理列表, 是否开启代理通过[./dev.env.js]配置 proxyTable: devEnv.OPEN_PROXY === false ? {} : { '/proxyApi': { - target: "https://sausers.blxinchuang.com/sqx_fast/", + // target: "https://sausers.blxinchuang.com/sqx_fast/", + // target: "http://192.168.2.222:8187/sqx_fast/", + target: "https://admin.sjajk.com/sqx_fast/", //生产需替换 changeOrigin: true, pathRewrite: { '^/proxyApi': '' diff --git a/src/utils/enumData.js b/src/utils/enumData.js index 1ceefa1..4f65956 100644 --- a/src/utils/enumData.js +++ b/src/utils/enumData.js @@ -1,7 +1,9 @@ import Vue from 'vue' -// const serverUrl = "https://admin.sjajk.com/sqx_fast/";//生产需替换 -const serverUrl = "https://sausers.blxinchuang.com/sqx_fast/"; +const serverUrl = "https://admin.sjajk.com/sqx_fast/";//生产需替换 +// const serverUrl = "http://192.168.2.222:8187/sqx_fast/"; +// const serverUrl = "http://120.46.52.165/sqx_fast/"; +// const serverUrl = "https://sausers.blxinchuang.com/sqx_fast/"; export const serverPaths = { serverUrl , diff --git a/src/utils/httpRequest.js b/src/utils/httpRequest.js index cebb5fc..9f60ffd 100644 --- a/src/utils/httpRequest.js +++ b/src/utils/httpRequest.js @@ -53,7 +53,8 @@ http.adornUrl = (actionName) => { http.adornWss = (actionName) => { // 非生产环境 && 开启代理, 接口前缀统一使用[/proxyApi/]前缀做代理拦截! // return (process.env.NODE_ENV !== 'production' && process.env.OPEN_PROXY ? '/proxyApi/' : window.SITE_CONFIG.baseUrl) + actionName - return 'wss://sausers.blxinchuang.com/wss/' + actionName + // return 'wss://sausers.blxinchuang.com/wss/' + actionName + return 'wss://admin.sjajk.com/wss/' + actionName //生产需替换 // return 'https://anmoadmin5.0.xianmaxiong.comsqx_fast/' + actionName } diff --git a/src/views/vueMchat/vueMchat.vue b/src/views/vueMchat/vueMchat.vue index 60eab08..84072dd 100644 --- a/src/views/vueMchat/vueMchat.vue +++ b/src/views/vueMchat/vueMchat.vue @@ -89,6 +89,13 @@
{{ item.createTime }}
+ +
+
+
+
+
{{ item.createTime }}
+
@@ -180,7 +187,8 @@