style: optimize styles for change password page

This commit is contained in:
RockYang
2023-06-17 00:02:49 +08:00
parent c008f33bc3
commit e7fd29b9cb
2 changed files with 11 additions and 12 deletions

View File

@@ -91,7 +91,7 @@ onMounted(() => {
httpGet('/api/user/profile').then(res => {
form.value = res.data
}).catch(() => {
ElMessage.error('获取用户信息失败')
ElMessage.error({message:'获取用户信息失败', appendTo: '#user-info'})
});
})
@@ -100,7 +100,7 @@ const save = function () {
httpPost('/api/user/profile/update', form.value).then(() => {
ElMessage.success({
message: '更新成功',
appendTo: document.getElementById('user-info'),
appendTo: '#user-info',
onClose: () => emits('hide', false)
})
// 更新用户数据