fix: fix bug for update user's power in admin page did not work

This commit is contained in:
RockYang
2024-03-23 16:21:37 +08:00
parent 82e06fad33
commit 3075bfb7fc
2 changed files with 37 additions and 10 deletions

View File

@@ -283,6 +283,7 @@ const saveUser = function () {
userEditFormRef.value.validate((valid) => {
if (valid) {
showUserEditDialog.value = false
console.log(user.value)
httpPost('/api/admin/user/save', user.value).then((res) => {
ElMessage.success('操作成功!')
if (add.value) {