Skip to content

Commit

Permalink
fix: 修改passwordRules参数 #149
Browse files Browse the repository at this point in the history
  • Loading branch information
v_yutyi authored and EmilyMei committed Dec 8, 2021
1 parent 6ec1290 commit ab58253
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pages/src/views/organization/details/UserMaterial.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ export default {
const currentPasswordInfo = this.$store.state.organization.currentPasswordInfo;
if (currentPasswordInfo.id === this.currentCategoryId && currentPasswordInfo.data) {
this.passwordRules = {
passwordMinLength: currentPasswordInfo.data.password_min_length,
passwordMustIncludes: currentPasswordInfo.data.password_must_includes,
passwordMinLength: currentPasswordInfo.data.password_min_length.value,
passwordMustIncludes: currentPasswordInfo.data.password_must_includes.value,
};
} else {
try {
Expand All @@ -340,8 +340,8 @@ export default {
});
const passwordInfo = this.$convertArrayToObject(res.data).default;
this.passwordRules = {
passwordMinLength: passwordInfo.password_min_length,
passwordMustIncludes: passwordInfo.password_must_includes,
passwordMinLength: passwordInfo.password_min_length.value,
passwordMustIncludes: passwordInfo.password_must_includes.value,
};
this.$store.commit('organization/updatePasswordInfo', {
id: this.currentCategoryId,
Expand Down

0 comments on commit ab58253

Please sign in to comment.