🐛 完善数据库完整性检测,修复视频加载失败

This commit is contained in:
目棃
2024-01-15 17:26:07 +08:00
parent db9b75da70
commit 10edf60894
3 changed files with 5 additions and 7 deletions

View File

@@ -33,9 +33,10 @@ const timer = ref<any>(null);
function readLoading(): void {
if (!loading.value) return;
const loadingMap = itemRefs.value.map((item) => {
let loadingMap = itemRefs.value.map((item) => {
return item.loading ? item.name : null;
});
if (!appStore.loading) loadingMap.push("数据库");
loadingSubtitle.value = "正在加载 " + loadingMap.filter((item) => item)?.join("、");
if (loadingMap.every((item) => !item)) {
loading.value = false;