fix(auth): 初始化认证表单时提供默认值以避免空值

This commit is contained in:
jxxghp
2024-11-19 21:24:53 +08:00
parent af9ee00ad3
commit 7406226e68

View File

@@ -61,7 +61,7 @@ async function loadLastAuthParams() {
try {
const result: { [key: string]: any } = await api.get(`system/setting/UserSiteAuthParams`)
if (result.success) {
authForm.value = result.data?.value || {}
authForm.value = result.data?.value || { site: null, params: {} }
}
} catch (e) {
console.error(e)