feat: 统一方法名 on => handle

This commit is contained in:
xingyu4j
2025-10-15 14:19:30 +08:00
parent daf01c0da8
commit 4052e3c8d2
78 changed files with 273 additions and 275 deletions

View File

@@ -23,7 +23,7 @@ const [FormModal, formModalApi] = useVbenModal({
const { push } = useRouter();
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
gridApi.query();
}
@@ -46,7 +46,7 @@ function handleDecorate(row: MallDiyPageApi.DiyPage) {
/** 删除 DIY 页面 */
async function handleDelete(row: MallDiyPageApi.DiyPage) {
await deleteDiyPage(row.id as number);
onRefresh();
handleRefresh();
}
const [Grid, gridApi] = useVbenVxeGrid({
@@ -89,7 +89,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
/>
</template>
<FormModal @success="onRefresh" />
<FormModal @success="handleRefresh" />
<Grid table-title="装修页面列表">
<template #toolbar-tools>

View File

@@ -29,7 +29,7 @@ const [FormModal, formModalApi] = useVbenModal({
const router = useRouter();
/** 刷新表格 */
function onRefresh() {
function handleRefresh() {
gridApi.query();
}
@@ -57,14 +57,14 @@ async function handleUse(row: MallDiyTemplateApi.DiyTemplate) {
// 发起删除
await useDiyTemplate(row.id as number);
message.success('使用成功');
onRefresh();
handleRefresh();
});
}
/** 删除DIY模板 */
async function handleDelete(row: MallDiyTemplateApi.DiyTemplate) {
await deleteDiyTemplate(row.id as number);
onRefresh();
handleRefresh();
}
const [Grid, gridApi] = useVbenVxeGrid({
@@ -107,7 +107,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
/>
</template>
<FormModal @success="onRefresh" />
<FormModal @success="handleRefresh" />
<Grid table-title="装修模板列表">
<template #toolbar-tools>