feat:完成登录页面+各种细节

This commit is contained in:
橙子
2023-03-21 23:05:42 +08:00
parent 418f4a4785
commit 4b856c4905
22 changed files with 430 additions and 189 deletions

View File

@@ -43,17 +43,24 @@ const rules = ref({
/** 提交按钮 */
function submit() {
pwdRef.value.validate(valid => {
pwdRef.value.validate(async valid => {
if (valid) {
updateUserPwd(user.oldPassword, user.newPassword).then(response => {
alert("修改成功");
});
const response=await updateUserPwd(user.oldPassword, user.newPassword)
if(response.status==200)
{
ElMessage({
type: "success",
message: "更新密码成功",
});
}
}
});
};
/** 关闭按钮 */
function close() {
alert("关闭")
// proxy.$tab.closePage();
};
</script>