mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
fix(auth): 初始化认证表单时提供默认值以避免空值
This commit is contained in:
@@ -61,7 +61,7 @@ async function loadLastAuthParams() {
|
|||||||
try {
|
try {
|
||||||
const result: { [key: string]: any } = await api.get(`system/setting/UserSiteAuthParams`)
|
const result: { [key: string]: any } = await api.get(`system/setting/UserSiteAuthParams`)
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
authForm.value = result.data?.value || {}
|
authForm.value = result.data?.value || { site: null, params: {} }
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user