mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
fix(auth): 初始化认证表单时提供默认值以避免空值
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user