浏览代码

lint error fix

jihuaqiang 2 周之前
父节点
当前提交
310ad4642b

+ 1 - 1
src/views/publishContent/weGZH/components/PunlishPlanDetailModal/index.tsx

@@ -72,7 +72,7 @@ const PunlishPlanDetailModal: React.FC<PunlishPlanDetailModalProps> = ({
 			const link = document.createElement('a');
 			link.href = video.cover;
 			// Attempt to infer filename, might need refinement
-			const filename = video.cover.substring(video.cover.lastIndexOf('/') + 1) || `cover_${video.id}.jpg`;
+			const filename = video.cover.substring(video.cover.lastIndexOf('/') + 1) || `cover_${video.videoId}.jpg`;
 			link.download = filename;
 			link.target = '_blank'; // Open in new tab might be safer for some browsers
 			link.rel = 'noopener noreferrer';

+ 1 - 1
src/views/publishContent/weGZH/hooks/useAccountOptions.ts

@@ -1,4 +1,4 @@
-import { useState, useEffect } from 'react';
+import { useState } from 'react';
 import { getGzhAccountOptionsApi } from '@src/http/api';
 import request from '@src/http/index';