diff --git a/web/src/views/dialog/changePasswordForAdmin.vue b/web/src/views/dialog/changePasswordForAdmin.vue
index cf5b875f3..73552410c 100755
--- a/web/src/views/dialog/changePasswordForAdmin.vue
+++ b/web/src/views/dialog/changePasswordForAdmin.vue
@@ -13,10 +13,10 @@
-
+
-
+
@@ -88,6 +88,14 @@ export default {
}
},
onSubmit: function() {
+ if (this.newPassword !== this.confirmPassword) {
+ this.$message({
+ showClose: true,
+ message: '两次输入密码不一致!',
+ type: 'error'
+ })
+ return
+ }
this.$store.dispatch('user/changePasswordForAdmin', {
password: this.newPassword,
userId: this.form.id