perf: 优化代码

This commit is contained in:
xingyu
2023-01-04 16:33:51 +08:00
parent e63e5ffe4c
commit ed7e3338f8
30 changed files with 44 additions and 224 deletions

View File

@@ -48,7 +48,7 @@
preIcon="ep:delete"
:title="t('action.del')"
v-hasPermi="['system:oauth2-client:delete']"
@click="handleDelete(row.id)"
@click="deleteData(row.id)"
/>
</template>
</XTable>
@@ -184,11 +184,6 @@ const handleDetail = async (rowId: number) => {
detailData.value = res
}
// 删除操作
const handleDelete = async (rowId: number) => {
await deleteData(rowId)
}
// 提交新增/修改的表单
const submitForm = async () => {
const elForm = unref(formRef)?.getElFormRef()

View File

@@ -5,7 +5,7 @@
<template #actionbtns_default="{ row }">
<!-- 操作详情 -->
<XTextButton preIcon="ep:view" :title="t('action.detail')" @click="handleDetail(row)" />
<!-- 操作删除 -->
<!-- 操作登出 -->
<XTextButton
preIcon="ep:delete"
:title="t('action.logout')"