diff --git a/dbm-ui/frontend/src/views/password-manage/policy/components/Content.vue b/dbm-ui/frontend/src/views/password-manage/policy/components/Content.vue index bb80fb4828..e39b632de8 100644 --- a/dbm-ui/frontend/src/views/password-manage/policy/components/Content.vue +++ b/dbm-ui/frontend/src/views/password-manage/policy/components/Content.vue @@ -19,24 +19,22 @@ :label-width="260" :model="formData" :rules="rules"> - + {{ t('至') }} - {{ t('开启后,不允许超过 x 位连续字符,如出现以下示例密码将无法通过检测', { x: defaultConfig.repeats }) }} + {{ t('开启后,不允许超过 x 位连续字符,如出现以下示例密码将无法通过检测', { x: formData.repeats }) }}
    @@ -217,7 +215,6 @@ ], }; - const defaultConfig = reactive(initData()); const formRef = ref(); const formData = reactive(initData()); const excludeContinuousRule = shallowRef({ @@ -237,7 +234,6 @@ const { id, name, rule } = data; passwordPolicyData.id = id; passwordPolicyData.name = name; - Object.assign(defaultConfig, rule); Object.assign(formData, rule); const { repeats } = rule; excludeContinuousRule.value = { @@ -298,7 +294,6 @@ }; const handleReset = () => { - Object.assign(formData, defaultConfig); handleSubmit(true); };