From dcaa6a1f25afe6cd6ca755397720576c001e395d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=A6=E5=93=A5?= <17630302050@163.com> Date: Sun, 9 Nov 2025 13:15:02 +0800 Subject: [PATCH] wewe --- .env.development | 3 +++ .env.production | 3 +++ .env.test | 3 +++ src/views/chat/index.vue | 4 ++-- 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.env.development b/.env.development index ad71156..dbd5340 100644 --- a/.env.development +++ b/.env.development @@ -4,3 +4,6 @@ VITE_APP_BASE_API = 'https://mini-chat.1024tool.vip/api' VITE_SERVE = "https://mini-chat.1024tool.vip/api/" VITE_APP_BASE_API_img = "https://mini-chat.1024tool.vip/" + + +VITE_APP_PAGE_SIZE = 100 \ No newline at end of file diff --git a/.env.production b/.env.production index 7d6f2d3..278c66c 100644 --- a/.env.production +++ b/.env.production @@ -3,3 +3,6 @@ NODE_ENV = 'production' VITE_APP_BASE_API = 'https://dsjhd9s.tbmw.cn/api/' VITE_SERVE = "https://dsjhd9s.tbmw.cn/api/" VITE_APP_BASE_API_img = "https://dsjhd9s.tbmw.cn/" + + +VITE_APP_PAGE_SIZE = 10000 \ No newline at end of file diff --git a/.env.test b/.env.test index a785f29..5bbcd28 100644 --- a/.env.test +++ b/.env.test @@ -4,3 +4,6 @@ VITE_APP_BASE_API = 'https://mini-chat.1024tool.vip/api' VITE_SERVE = "https://mini-chat.1024tool.vip/api/" VITE_APP_BASE_API_img = "https://mini-chat.1024tool.vip/" + + +VITE_APP_PAGE_SIZE = 100 \ No newline at end of file diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index 9012ae7..be6bd8c 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -707,7 +707,7 @@ const onEmojiSelect = (emoji) => { // 获取用户列表 const params = reactive({ page: 1, - page_size: 2000, + page_size: import.meta.env.VITE_APP_PAGE_SIZE, app_id: route.query.app_id }) @@ -856,7 +856,7 @@ const sendTemplateMessage = async (templateId) => { getMessages(false, 1) // 轮询最新消息 }, 500) } else { - ElMessage({ type: 'error', message: res.message || '模板消息发送失败' }) + ElMessage({ type: 'error', message: '推送失败,对方没有订阅!' }) } })