mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix bug
This commit is contained in:
@@ -101,7 +101,7 @@ async function saveNotificationSetting() {
|
|||||||
async function loadNotificationSwitchs() {
|
async function loadNotificationSwitchs() {
|
||||||
try {
|
try {
|
||||||
const result: { [key: string]: any } = await api.get('system/setting/NotificationSwitchs')
|
const result: { [key: string]: any } = await api.get('system/setting/NotificationSwitchs')
|
||||||
notificationSwitchs.value = result.data?.value ?? []
|
if (result.data?.value && result.data?.value.length > 0) notificationSwitchs.value = result.data?.value
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
console.log(error)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user