diff --git a/src/pages/merchant/components/LookWithdrawalInformationModal.vue b/src/pages/merchant/components/LookWithdrawalInformationModal.vue index fad41c0..240ae34 100644 --- a/src/pages/merchant/components/LookWithdrawalInformationModal.vue +++ b/src/pages/merchant/components/LookWithdrawalInformationModal.vue @@ -2,6 +2,7 @@ import {reactive, ref, watch} from "vue"; import Api from "../../../api/index.js"; import {Message} from "@arco-design/web-vue"; +import {debounce} from "lodash"; const visible = ref(false); const detail = reactive({}); @@ -33,7 +34,7 @@ watch( {deep: true} ) -const success = async () => { +const success = debounce(async () => { const {msg} = await Api.merchant.postWithdrawal({ id: id, type: 1, @@ -41,7 +42,7 @@ const success = async () => { }); Message.success(msg); emits('success'); -} +}, 500);