refactor: vue3 delete function

This commit is contained in:
xingyu
2022-07-28 15:56:38 +08:00
parent ee6317e906
commit b167f54813
26 changed files with 45 additions and 147 deletions

View File

@ -49,10 +49,6 @@ const handleGenTable = async (row: CodegenTableVO) => {
const res = await CodegenApi.downloadCodegenApi(row.id)
download.zip(res, 'codegen-' + row.className + '.zip')
}
// 删除操作
const handleDelete = (row: CodegenTableVO) => {
delList(row.id, false)
}
// 查询操作
const handleQuery = () => {
getList()
@ -112,7 +108,7 @@ getList()
link
type="primary"
v-hasPermi="['infra:codegen:delete']"
@click="handleDelete(row)"
@click="delList(row.id, false)"
>
<Icon icon="ep:delete" class="mr-1px" /> {{ t('action.del') }}
</el-button>