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