From 0b8af1c74e535ba525b5e92e44e7df7806b1e416 Mon Sep 17 00:00:00 2001 From: DaxPay Date: Thu, 26 Sep 2024 14:45:07 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E9=80=9A=E9=81=93=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../wechat/config/WechatPayConfigEdit.vue | 4 ++-- .../common/develop/auth/ChannelAuth.vue | 20 +++++++++++++------ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/views/daxpay/common/channel/wechat/config/WechatPayConfigEdit.vue b/src/views/daxpay/common/channel/wechat/config/WechatPayConfigEdit.vue index c77784018..adc8f8f3a 100644 --- a/src/views/daxpay/common/channel/wechat/config/WechatPayConfigEdit.vue +++ b/src/views/daxpay/common/channel/wechat/config/WechatPayConfigEdit.vue @@ -31,11 +31,11 @@ placeholder="请输入微信应用AppId" /> - + diff --git a/src/views/daxpay/common/develop/auth/ChannelAuth.vue b/src/views/daxpay/common/develop/auth/ChannelAuth.vue index 549c448f2..ec5b1504a 100644 --- a/src/views/daxpay/common/develop/auth/ChannelAuth.vue +++ b/src/views/daxpay/common/develop/auth/ChannelAuth.vue @@ -38,6 +38,7 @@ placeholder="请选择对账通道" /> ({}) const authResult = ref({}) const authUrl = ref({ authUrl: '' }) + let loading = ref(false) let pause: any = () => {} onMounted(() => { @@ -138,7 +141,6 @@ */ function copy(value) { copyText(value) - createMessage.info('已复制到剪贴板中') } /** @@ -146,11 +148,17 @@ */ function getUrl() { pause() - createMessage.info('正在生成链接,请稍等.....') - generateAuthUrl(form.value).then((res) => { - authUrl.value = res.data - query() - }) + authResult.value = {} + loading.value = true + authUrl.value = {} + generateAuthUrl(form.value) + .then((res) => { + authUrl.value = res.data + query() + }) + .finally(() => { + loading.value = false + }) } /**