From 78bb30bb5fdd54eb34d88e3fd24098aeed29a7cc Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 27 九月 2024 16:15:17 +0800 Subject: [PATCH] 修复码生成上级菜单显示问题(I9CTIJ) --- ruoyi-ui/src/views/system/user/profile/resetPwd.vue | 17 +++++++---------- 1 files changed, 7 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/system/user/profile/resetPwd.vue b/ruoyi-ui/src/views/system/user/profile/resetPwd.vue index a7d1c90..561a30e 100644 --- a/ruoyi-ui/src/views/system/user/profile/resetPwd.vue +++ b/ruoyi-ui/src/views/system/user/profile/resetPwd.vue @@ -7,7 +7,7 @@ <el-input v-model="user.newPassword" placeholder="请输入新密码" type="password" show-password/> </el-form-item> <el-form-item label="确认密码" prop="confirmPassword"> - <el-input v-model="user.confirmPassword" placeholder="请确认密码" type="password" show-password/> + <el-input v-model="user.confirmPassword" placeholder="请确认新密码" type="password" show-password/> </el-form-item> <el-form-item> <el-button type="primary" size="mini" @click="submit">保存</el-button> @@ -29,7 +29,6 @@ } }; return { - test: "1test", user: { oldPassword: undefined, newPassword: undefined, @@ -42,7 +41,8 @@ ], newPassword: [ { required: true, message: "新密码不能为空", trigger: "blur" }, - { min: 6, max: 20, message: "长度在 6 到 20 个字符", trigger: "blur" } + { min: 6, max: 20, message: "长度在 6 到 20 个字符", trigger: "blur" }, + { pattern: /^[^<>"'|\\]+$/, message: "不能包含非法字符:< > \" ' \\\ |", trigger: "blur" } ], confirmPassword: [ { required: true, message: "确认密码不能为空", trigger: "blur" }, @@ -55,17 +55,14 @@ submit() { this.$refs["form"].validate(valid => { if (valid) { - updateUserPwd(this.user.oldPassword, this.user.newPassword).then( - response => { - this.msgSuccess("修改成功"); - } - ); + updateUserPwd(this.user.oldPassword, this.user.newPassword).then(response => { + this.$modal.msgSuccess("修改成功"); + }); } }); }, close() { - this.$store.dispatch("tagsView/delView", this.$route); - this.$router.push({ path: "/index" }); + this.$tab.closePage(); } } }; -- Gitblit v1.9.2