细节修改
This commit is contained in:
parent
db27f7347a
commit
092d8fcdb1
@ -266,9 +266,7 @@ class MyPageState extends State<MyPage> with SingleTickerProviderStateMixin {
|
||||
void deletePersonalVideo(videoId) async {
|
||||
logger.i('删除视频${videoId}');
|
||||
try {
|
||||
final res = await Http.post('${VideoApi.deleteVideo}', data: {
|
||||
'vlogerId':videoId
|
||||
});
|
||||
final res = await Http.post('${VideoApi.deleteVideo}?id=${videoId}', data: {});
|
||||
logger.i('删除成功响应${res}');
|
||||
if(res != null && res['code'] == 200){
|
||||
MyDialog.toast('删除成功', icon: const Icon(Icons.check_circle), style: ToastStyle(backgroundColor: Colors.green.withAlpha(200)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user