@ -59,6 +59,7 @@
},
methods: {
async confirm() {
await showDialog("确定要" +(this.edit ? '编辑' : '新增') + '吗?', this)
if (this.edit) {
await post('lb/user/updateUser', {
nickname: this.userForm.nickname,
@ -105,7 +105,6 @@
// 编辑用户
async editUser(item) {
await showDialog('确认编辑该用户吗?',this)
this.edit = true
this.userForm = item
this.dialogFormVisible = true