This commit is contained in:
王一嘉
2025-07-17 17:59:38 +08:00
parent e86f7a3fce
commit b332c1d1a9
2 changed files with 4 additions and 3 deletions

View File

@@ -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);
</script>
<template>

View File

@@ -34,7 +34,7 @@ const success = debounce(async () => {
});
Message.success(msg);
emits('success');
})
}, 500);
</script>
<template>