update
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -34,7 +34,7 @@ const success = debounce(async () => {
|
||||
});
|
||||
Message.success(msg);
|
||||
emits('success');
|
||||
})
|
||||
}, 500);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user