From cde8d4793ac8d1568b422661e44a481e25a1924b Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Tue, 19 May 2026 17:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BB=E8=80=85=E7=95=99=E8=A8=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/config.js | 8 +------- src/views/weChatMiniProgram/feedback.vue | 20 ++++++++++++-------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/public/static/config.js b/public/static/config.js index 34b1fb0..c66e04f 100644 --- a/public/static/config.js +++ b/public/static/config.js @@ -1,10 +1,4 @@ window.g = { AXIOS_TIMEOUT: 10000, - //ApiUrl: 'http://192.168.3.220:12010', // 江夏配置服务器地址, - ApiUrl: 'http://192.168.99.63:14000', // 配置服务器地址, - // ParentPage: { // 后续看需求配置 - // CrossDomainProxyUrl: '/Home/CrossDomainProxy', - // BtnsApi: '/api/services/app/Authorization/GetBtns', - // OrgsApi: '/api/services/app/authorization/GetOrgsByUserId' - // }, + ApiUrl: 'https://wechatapi.aiyxlib.com', // 配置服务器地址 } \ No newline at end of file diff --git a/src/views/weChatMiniProgram/feedback.vue b/src/views/weChatMiniProgram/feedback.vue index 3e60d0d..428dfc4 100644 --- a/src/views/weChatMiniProgram/feedback.vue +++ b/src/views/weChatMiniProgram/feedback.vue @@ -84,13 +84,11 @@ @@ -180,6 +178,8 @@ export default { id: null, reply: '' }, + // 专门用于编辑输入的变量 + editReply: '', replyRules: { reply: [{ required: true, message: '请输入回复内容', trigger: 'blur' }] }, @@ -227,20 +227,23 @@ export default { }, handleReply(row) { this.replyForm = { ...row } + this.editReply = '' this.replyVisible = true }, onRowDblclick(row) { - this.replyForm = { ...row } - this.replyVisible = true + this.handleReply(row) }, async submitReply() { - if (this.replyForm.reply) return - await this.$refs.replyForm.validate() + // 校验输入内容 + if (!this.editReply.trim()) { + this.$message.warning('请输入回复内容') + return + } this.replyLoading = true try { const params = { id: this.replyForm.id, - reply: this.replyForm.reply + reply: this.editReply } await FetchReplyReaderMessage(params) this.$message.success('回复成功') @@ -259,6 +262,7 @@ export default { if (this.$refs.replyForm) { this.$refs.replyForm.clearValidate() } + this.editReply = '' this.replyVisible = false }) }