fix: 字幕导致headControl初始化失败

This commit is contained in:
guozhigq
2024-07-06 19:31:28 +08:00
parent b3f1400c04
commit a23a18f3bc
2 changed files with 3 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class VideoHttp {
return {'status': false, 'data': [], 'msg': res.data['msg']}; return {'status': false, 'data': [], 'msg': res.data['msg']};
} }
} catch (err) { } catch (err) {
print(err); return {'status': false, 'data': [], 'msg': res.data['msg']};
} }
} }

View File

@ -440,6 +440,8 @@ class VideoDetailController extends GetxController
getDanmaku(subtitles); getDanmaku(subtitles);
} }
return subtitles; return subtitles;
} else {
return [];
} }
} }