Browse Source

1、密码策略重置修改为表单初始值

hella_online_20240919
bjang03 2 days ago
parent
commit
8d0496cd2d
  1. 17
      src/views/system/passwordRule/index.vue

17
src/views/system/passwordRule/index.vue

@ -104,24 +104,21 @@ const rules = {
password: [required], password: [required],
againPassword: [required] againPassword: [required]
} }
const defaultConfig = ref({ const reset = () => {
status: false, getConfig()
}
const passwordConfig = ref({
status: true,
ruleLevel: "简单", ruleLevel: "简单",
ruleDesc: "", ruleDesc: "",
tryCount: 5, tryCount: 3,
lockHours: 1, lockHours: 1,
updatePeriod: 180,
dayTryCount: 5, dayTryCount: 5,
updatePeriod: 100,
updateRemind: 7, updateRemind: 7,
}) })
const passwordConfig = ref({})
const reset = () => {
passwordConfig.value = defaultConfig.value
changeRule("简单")
}
/** 查询配置 */ /** 查询配置 */
const getConfig = async () => { const getConfig = async () => {
passwordConfig.value = defaultConfig.value
loading.value = true loading.value = true
try { try {
passwordConfig.value = await api.getConfig() passwordConfig.value = await api.getConfig()

Loading…
Cancel
Save