mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 00:36:41 +08:00
fix ui
This commit is contained in:
@@ -198,8 +198,6 @@ async function fetchUninstalledPlugins() {
|
|||||||
state: 'market',
|
state: 'market',
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
// 设置APP市场加载完成
|
|
||||||
isAppMarketLoaded.value = true
|
|
||||||
// 设置更新状态
|
// 设置更新状态
|
||||||
for (const uninstalled of uninstalledList.value) {
|
for (const uninstalled of uninstalledList.value) {
|
||||||
for (const data of dataList.value) {
|
for (const data of dataList.value) {
|
||||||
@@ -216,6 +214,8 @@ async function fetchUninstalledPlugins() {
|
|||||||
marketList.value = uninstalledList.value.filter(item => !(item.has_update && item.installed))
|
marketList.value = uninstalledList.value.filter(item => !(item.has_update && item.installed))
|
||||||
// 初始化过滤选项
|
// 初始化过滤选项
|
||||||
marketList.value.forEach(initOptions)
|
marketList.value.forEach(initOptions)
|
||||||
|
// 设置APP市场加载完成
|
||||||
|
isAppMarketLoaded.value = true
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
}
|
}
|
||||||
@@ -231,8 +231,8 @@ async function getPluginStatistics() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 加载所有数据
|
// 加载所有数据
|
||||||
function refreshData() {
|
async function refreshData() {
|
||||||
fetchInstalledPlugins()
|
await fetchInstalledPlugins()
|
||||||
fetchUninstalledPlugins()
|
fetchUninstalledPlugins()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -275,8 +275,8 @@ function pluginLabels(label: string | undefined) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 加载时获取数据
|
// 加载时获取数据
|
||||||
onBeforeMount(() => {
|
onBeforeMount(async () => {
|
||||||
refreshData()
|
await refreshData()
|
||||||
getPluginStatistics()
|
getPluginStatistics()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user