fix user delete from admin

This commit is contained in:
les
2021-07-09 21:40:40 +02:00
parent dd9ff7cd81
commit 33a9dd6a3f

View File

@@ -78,7 +78,7 @@ export default {
if (!ret) { return } if (!ret) { return }
await this.$axios.delete(`/user/${user.id}`) await this.$axios.delete(`/user/${user.id}`)
this.$root.$message('admin.user_remove_ok') this.$root.$message('admin.user_remove_ok')
this.users_ = this.users_.filter(u => u.id !== user.id) this.$emit('update')
}, },
async toggle (user) { async toggle (user) {
if (user.is_active) { if (user.is_active) {