mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: null safety
This commit is contained in:
@@ -1337,7 +1337,10 @@ class PlPlayerController {
|
|||||||
if (res["data"].length == 0) {
|
if (res["data"].length == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_vttSubtitles.value = await VideoHttp.vttSubtitles(res["data"]);
|
var result = await VideoHttp.vttSubtitles(res["data"]);
|
||||||
|
if (result != null) {
|
||||||
|
_vttSubtitles.value = result;
|
||||||
|
}
|
||||||
// if (_vttSubtitles.isEmpty) {
|
// if (_vttSubtitles.isEmpty) {
|
||||||
// SmartDialog.showToast('字幕均加载失败');
|
// SmartDialog.showToast('字幕均加载失败');
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user