mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-19 23:29:52 +08:00
fix dashboard refresh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "moviepilot",
|
||||
"version": "1.9.0",
|
||||
"version": "1.9.0-1",
|
||||
"private": true,
|
||||
"bin": "dist/service.js",
|
||||
"scripts": {
|
||||
@@ -101,4 +101,4 @@
|
||||
"resolutions": {
|
||||
"postcss": "8"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -210,9 +210,9 @@ async function getPluginDashboard(id: string) {
|
||||
sortDashboardConfigs()
|
||||
}
|
||||
// 定时刷新
|
||||
if (res.attrs?.refresh) {
|
||||
if (res.attrs?.refresh && pluginDashboardRefreshStatus.value[id] && enableConfig.value[id]) {
|
||||
setTimeout(() => {
|
||||
pluginDashboardRefreshStatus.value[id] && getPluginDashboard(id)
|
||||
getPluginDashboard(id)
|
||||
}, res.attrs.refresh * 1000)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user