From 5e73e111a411911593efb5f98dc72f2fd69ae6cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=96=B9=E6=88=90?= Date: Sun, 19 Oct 2025 23:16:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=B6=88=E6=81=AF?= =?UTF-8?q?=E5=88=86=E9=A1=B5=E5=A4=A7=E5=B0=8F=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?AppSecret=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将消息分页大小从190调整为100以优化性能 在表单中添加AppSecret输入框并设置密码类型,增强安全性 --- src/views/chat/index.vue | 2 +- src/views/miniProgram/index.vue | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index dcc3fbb..3a10188 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -69,7 +69,7 @@ const sendeInfo = reactive({ // 消息分页查询参数 const msgQuery = reactive({ page: 1, - page_size: 190, + page_size: 100, app_id: route.query.app_id, user_id: '' }) diff --git a/src/views/miniProgram/index.vue b/src/views/miniProgram/index.vue index a697b37..8fe00ba 100644 --- a/src/views/miniProgram/index.vue +++ b/src/views/miniProgram/index.vue @@ -94,6 +94,9 @@ + + + @@ -202,6 +205,11 @@ const rules = ref({ message: '请输入小程序ID', trigger: 'change', }], + app_secret: [{ + required: true, + message: '请输入AppSecret', + trigger: 'change', + }], avatar: [{ required: true, message: '请上传小程序头像', @@ -260,6 +268,7 @@ const submitRobot = async () => { description: ruleForm.value.description, name: ruleForm.value.name, app_id: ruleForm.value.app_id, + app_secret: ruleForm.value.app_secret, avatar: ruleForm.value.avatar }) // editItem = ruleForm.value