Skip to content

Commit 0b414a9

Browse files
committed
fix: bug fix
1 parent d13330d commit 0b414a9

File tree

1 file changed

+9
-15
lines changed

1 file changed

+9
-15
lines changed

frontend/src/views/system/user/User.vue

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
</template>
2424
{{ $t('user.filter') }}
2525
</el-button>
26-
<el-button secondary @click="handleUserImport">
26+
<!-- <el-button secondary @click="handleUserImport">
2727
<template #icon>
2828
<ccmUpload></ccmUpload>
2929
</template>
3030
{{ $t('user.batch_import') }}
31-
</el-button>
31+
</el-button> -->
3232
<el-button type="primary" @click="editHandler(null)">
3333
<template #icon>
3434
<icon_add_outlined></icon_add_outlined>
@@ -573,20 +573,14 @@ const deleteHandler = (row: any) => {
573573
customClass: 'confirm-no_icon',
574574
autofocus: false,
575575
}).then(() => {
576-
multipleSelectionAll.value = multipleSelectionAll.value.filter((ele) => ele.id !== row.id)
577-
ElMessage({
578-
type: 'success',
579-
message: t('dashboard.delete_success'),
576+
userApi.delete(row.id).then(() => {
577+
multipleSelectionAll.value = multipleSelectionAll.value.filter((ele) => ele.id !== row.id)
578+
ElMessage({
579+
type: 'success',
580+
message: t('dashboard.delete_success'),
581+
})
582+
search()
580583
})
581-
search()
582-
// userApi.delete(row.id).then(() => {
583-
// multipleSelectionAll.value = multipleSelectionAll.value.filter((ele) => ele.id !== row.id)
584-
// ElMessage({
585-
// type: 'success',
586-
// message: t('dashboard.delete_success'),
587-
// })
588-
// search()
589-
// })
590584
})
591585
}
592586

0 commit comments

Comments
 (0)