update
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import {reactive, ref, watch} from "vue";
|
import {reactive, ref, watch} from "vue";
|
||||||
import Api from "../../../api/index.js";
|
import Api from "../../../api/index.js";
|
||||||
import {Message} from "@arco-design/web-vue";
|
import {Message} from "@arco-design/web-vue";
|
||||||
|
import {debounce} from "lodash";
|
||||||
|
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const detail = reactive({});
|
const detail = reactive({});
|
||||||
@@ -33,7 +34,7 @@ watch(
|
|||||||
{deep: true}
|
{deep: true}
|
||||||
)
|
)
|
||||||
|
|
||||||
const success = async () => {
|
const success = debounce(async () => {
|
||||||
const {msg} = await Api.merchant.postWithdrawal({
|
const {msg} = await Api.merchant.postWithdrawal({
|
||||||
id: id,
|
id: id,
|
||||||
type: 1,
|
type: 1,
|
||||||
@@ -41,7 +42,7 @@ const success = async () => {
|
|||||||
});
|
});
|
||||||
Message.success(msg);
|
Message.success(msg);
|
||||||
emits('success');
|
emits('success');
|
||||||
}
|
}, 500);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const success = debounce(async () => {
|
|||||||
});
|
});
|
||||||
Message.success(msg);
|
Message.success(msg);
|
||||||
emits('success');
|
emits('success');
|
||||||
})
|
}, 500);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user