From 3c423633c5db23d149e354d9bed246c04ae9eb44 Mon Sep 17 00:00:00 2001 From: bootx Date: Sun, 8 Dec 2024 10:55:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BC=98=E5=8C=96=E5=95=86=E6=88=B7?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E9=85=8D=E7=BD=AE=E6=97=B6=E7=AD=BE=E5=90=8D?= =?UTF-8?q?=E7=A7=98=E9=92=A5=E9=BB=98=E8=AE=A4=E7=94=9F=E6=88=90=E5=90=8E?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E6=94=B9=E5=8F=98=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daxpay/common/merchant/app/MchAppEdit.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/daxpay/common/merchant/app/MchAppEdit.vue b/src/views/daxpay/common/merchant/app/MchAppEdit.vue index 3fd7927e4..ebe6501d3 100644 --- a/src/views/daxpay/common/merchant/app/MchAppEdit.vue +++ b/src/views/daxpay/common/merchant/app/MchAppEdit.vue @@ -78,7 +78,7 @@ > - + ([]) @@ -156,10 +157,10 @@ /** * 入口 */ - function init(id, editType: FormEditType) { + async function init(id, editType: FormEditType) { initData() initFormEditType(editType) - resetForm() + await resetForm() getInfo(id, editType) } @@ -210,13 +211,18 @@ * 生成秘钥 */ function genSignSecret() { + console.log(form.value.signSecret) form.value.signSecret = buildUUID() + buildUUID() + console.log(form.value.signSecret) } /** * 重置表单的校验 */ - function resetForm() { - nextTick(() => formRef.value?.resetFields()) + async function resetForm() { + await nextTick(() => { + formRef.value?.resetFields() + console.log(form.value) + }) } defineExpose({ init,