From eeae43fcb1371b57a69a292ca488342e0ced5ded Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Mon, 18 Aug 2025 11:12:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E5=B8=81=E9=80=80=E6=AC=BE=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 ++-- src/views/refund/gold/addCoinRefund.vue | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.env.development b/.env.development index f7965ab..4a254d4 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ -VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' +# VITE_API_BASE='https://hwjb.homilychart.com/dev/admin' # 测试环境 # VITE_API_BASE='http://54.255.212.181:10704/' # 正式环境 @@ -11,6 +11,6 @@ VITE_UPLOAD_URL=http://39.101.133.168:8828/hljw/api/aws/upload # zhangyong # VITE_API_BASE='http://192.168.3.83:8081/' # 本地 -# VITE_API_BASE='http://localhost:8081/' +VITE_API_BASE='http://localhost:8081/' # sunjiabei # VITE_API_BASE='http://192.168.0.113:8081/' \ No newline at end of file diff --git a/src/views/refund/gold/addCoinRefund.vue b/src/views/refund/gold/addCoinRefund.vue index 6a20e36..f26e5df 100644 --- a/src/views/refund/gold/addCoinRefund.vue +++ b/src/views/refund/gold/addCoinRefund.vue @@ -81,12 +81,13 @@ const add = async function () { taskGold: (Number(addRefund.value.taskGold) || 0) * 100, sumGold: (Number(addRefund.value.sumGold) || 0) * 100 } - + addDisabled.value = true // 发送POST请求 const result = await API({ url: '/refund/add', data: processedRefund }) + addDisabled.value = false if (result.code === 0) { ElMessage.error(result.msg) return @@ -100,6 +101,8 @@ const add = async function () { // 在这里可以处理错误逻辑,比如显示错误提示等 } } +//提交禁止重复点击 +const addDisabled = ref(false) // 提交退款信息前的表单验证 const addBefore = () => { @@ -499,7 +502,7 @@ onMounted(async function () { 重置 - 提交 + 提交