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 () { 重置 - 提交 + 提交