From 879058cec4b41b3840a6401da92d8157dd87d841 Mon Sep 17 00:00:00 2001 From: xingyu Date: Wed, 29 Mar 2023 23:59:19 +0800 Subject: [PATCH] feat: refund --- src/views/pay/refund/RefundModal.vue | 12 ++---------- src/views/pay/refund/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/views/pay/refund/RefundModal.vue b/src/views/pay/refund/RefundModal.vue index 87e6f0a4..b5dfbbd9 100644 --- a/src/views/pay/refund/RefundModal.vue +++ b/src/views/pay/refund/RefundModal.vue @@ -1,5 +1,5 @@ @@ -10,19 +10,11 @@ import { Description } from '@/components/Description' import { descSchema } from './refund.data' import { getRefund } from '@/api/pay/refund' -const emit = defineEmits(['success', 'register']) - const refundData = ref() -const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => { +const [registerModal, { setModalProps }] = useModalInner(async (data) => { setModalProps({ confirmLoading: false }) const res = await getRefund(data.record.id) refundData.value = res }) - -async function handleSubmit() { - closeModal() - emit('success') - setModalProps({ confirmLoading: false }) -} diff --git a/src/views/pay/refund/index.vue b/src/views/pay/refund/index.vue index 4be0723c..91bd3695 100644 --- a/src/views/pay/refund/index.vue +++ b/src/views/pay/refund/index.vue @@ -16,7 +16,7 @@ - +