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