From 46f55d8b0efe28e543527218ff3667aed8d7e671 Mon Sep 17 00:00:00 2001 From: lr Date: Thu, 20 Feb 2025 15:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jiuyi2/common/js/config.js | 1 + jiuyi2/components/news/msgList.vue | 13 ------------- jiuyi2/pages/news/chat/chat.vue | 5 ++++- jiuyi2/vite.config.js | 3 ++- 4 files changed, 7 insertions(+), 15 deletions(-) diff --git a/jiuyi2/common/js/config.js b/jiuyi2/common/js/config.js index d9448b2f..6522293b 100644 --- a/jiuyi2/common/js/config.js +++ b/jiuyi2/common/js/config.js @@ -7,6 +7,7 @@ const config = { // #endif // #ifndef H5 host: 'http://91f.xyz:8080', + host: 'https://b433d23.r24.cpolar.top/', // #endif // 支付方式配置 payType: { diff --git a/jiuyi2/components/news/msgList.vue b/jiuyi2/components/news/msgList.vue index 0030eda5..a003a04e 100644 --- a/jiuyi2/components/news/msgList.vue +++ b/jiuyi2/components/news/msgList.vue @@ -317,13 +317,6 @@ function handleDate(timestamp) { @click="handleMenu($event, item)"> - - {{ item.unreadCount }} @@ -331,12 +324,6 @@ function handleDate(timestamp) { {{ item.name }} - {{ util.formatTime('MM-dd HH:mm', item.MsgTime) }} diff --git a/jiuyi2/pages/news/chat/chat.vue b/jiuyi2/pages/news/chat/chat.vue index 9d2f7842..33a67513 100644 --- a/jiuyi2/pages/news/chat/chat.vue +++ b/jiuyi2/pages/news/chat/chat.vue @@ -212,7 +212,10 @@ function sendMsg(param) { data: param.data, }).then((rs) => { if (rs.code == 200) { - getHistory() + getHistory({ + msgId: '', + limit: 1, + }) param.success ? param.success() : '' return } diff --git a/jiuyi2/vite.config.js b/jiuyi2/vite.config.js index fc5535df..47c96de2 100644 --- a/jiuyi2/vite.config.js +++ b/jiuyi2/vite.config.js @@ -3,7 +3,8 @@ import { } from 'vite'; import uni from '@dcloudio/vite-plugin-uni'; -let target = 'http://91f.xyz:8080' +// let target = 'http://91f.xyz:8080' +let target = 'https://b433d23.r24.cpolar.top/' export default defineConfig({ plugins: [uni()],