优化系统配置

This commit is contained in:
不做码农
2022-11-10 21:34:38 +08:00
parent 0484b9c487
commit 1f5ce7d039
3 changed files with 16 additions and 10 deletions
+4 -3
View File
@@ -104,9 +104,9 @@ const captchaOnOff = ref('')
const register = ref(false)
const redirect = ref()
redirect.value = route.query.redirect
proxy.getConfigKey('sys.account.captchaOnOff').then((response) => {
captchaOnOff.value = response.data
})
// proxy.getConfigKey('sys.account.captchaOnOff').then((response) => {
// captchaOnOff.value = response.data
// })
function handleLogin() {
proxy.$refs.loginRef.validate((valid) => {
@@ -147,6 +147,7 @@ function getCode() {
getCodeImg().then((res) => {
codeUrl.value = 'data:image/gif;base64,' + res.data.img
loginForm.value.uuid = res.data.uuid
captchaOnOff.value = res.data.captchaOff
})
}