mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-08 01:00:36 +08:00
优化dashboard配置功能
This commit is contained in:
10
src/App.vue
10
src/App.vue
@@ -53,11 +53,19 @@ async function loadDashboardConfig() {
|
||||
}
|
||||
}
|
||||
|
||||
// 尝试加载用户监控面板配置(本地无配置时才加载)
|
||||
async function tryLoadDashboardConfig() {
|
||||
if (localStorage.getItem("MP_DASHBOARD")) {
|
||||
return
|
||||
}
|
||||
await loadDashboardConfig()
|
||||
}
|
||||
|
||||
// 页面加载时,加载当前用户数据
|
||||
onBeforeMount(async () => {
|
||||
setTheme()
|
||||
startSSEMessager()
|
||||
await loadDashboardConfig()
|
||||
await tryLoadDashboardConfig()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user