[fix][V]:完善表单提交提示逻辑

master
Romesum 5 years ago
parent e984d2b44d
commit 3e0a437e65

@ -59,6 +59,7 @@
}, },
methods: { methods: {
async confirm() { async confirm() {
await showDialog("确定要" +(this.edit ? '编辑' : '新增') + '吗?', this)
if (this.edit) { if (this.edit) {
await post('lb/user/updateUser', { await post('lb/user/updateUser', {
nickname: this.userForm.nickname, nickname: this.userForm.nickname,

@ -105,7 +105,6 @@
}, },
// //
async editUser(item) { async editUser(item) {
await showDialog('确认编辑该用户吗?',this)
this.edit = true this.edit = true
this.userForm = item this.userForm = item
this.dialogFormVisible = true this.dialogFormVisible = true

Loading…
Cancel
Save