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