weblive外部播放器

This commit is contained in:
mtvpls
2026-01-20 15:43:21 +08:00
parent f31a9b0430
commit 037a7e7249
2 changed files with 188 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ export async function POST(request: NextRequest) {
}
const sortedSources = keys
.map((key) => config.WebLiveConfig!.find((s) => s.key === key))
.filter((s) => s !== undefined);
.filter((s): s is NonNullable<typeof s> => s !== undefined);
config.WebLiveConfig = sortedSources;
break;
}