|  |  | @@ -177,6 +177,7 @@ | 
		
	
		
			
			|  |  |  | placement="top" | 
		
	
		
			
			|  |  |  | > | 
		
	
		
			
			|  |  |  | <button | 
		
	
		
			
			|  |  |  | v-if="false" | 
		
	
		
			
			|  |  |  | class="elBtn upSharpness" | 
		
	
		
			
			|  |  |  | @click.stop="upGrades(presentItem.id)" | 
		
	
		
			
			|  |  |  | > | 
		
	
	
		
			
				|  |  | @@ -345,7 +346,7 @@ function handelDelete(id, title) { | 
		
	
		
			
			|  |  |  | // 升级画质 | 
		
	
		
			
			|  |  |  | const upGradesLoading = ref(false); | 
		
	
		
			
			|  |  |  | function upGrades(id) { | 
		
	
		
			
			|  |  |  | if ((upGradesLoading.value = true)) { | 
		
	
		
			
			|  |  |  | if (upGradesLoading.value == true) { | 
		
	
		
			
			|  |  |  | ElMessage.error( | 
		
	
		
			
			|  |  |  | lanChange.value == "zh-cn" | 
		
	
		
			
			|  |  |  | ? `正在升级,请稍后~` | 
		
	
	
		
			
				|  |  | @@ -466,19 +467,26 @@ const notGenerateList = ref([]); //页面上未生成的视频的id  普通视 | 
		
	
		
			
			|  |  |  | const notGenerateList2 = ref([]); //页面上未生成的视频的id  升级视频 | 
		
	
		
			
			|  |  |  | const checkVideoStatus = async () => { | 
		
	
		
			
			|  |  |  | // 如果列表中没有生成中的视频,不发送请求 | 
		
	
		
			
			|  |  |  | if (notGenerateList.value.length == 0 && notGenerateList2.value.length == 0) { | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | 
 | 
		
	
		
			
			|  |  |  | const intervalId = setInterval(async () => { | 
		
	
		
			
			|  |  |  | // && notGenerateList2.value.length == 0; | 
		
	
		
			
			|  |  |  | if (notGenerateList.value.length == 0) { | 
		
	
		
			
			|  |  |  | return; | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | try { | 
		
	
		
			
			|  |  |  | const res = await checkVideoStatusApi(notGenerateList.value, 1); | 
		
	
		
			
			|  |  |  | const res2 = await checkVideoStatusApi(notGenerateList2.value, 2); | 
		
	
		
			
			|  |  |  | // const res2 = checkVideoStatusApi(notGenerateList2.value, 2); | 
		
	
		
			
			|  |  |  | // 如果有新的,则提示且更新列表 | 
		
	
		
			
			|  |  |  | if (res.code != 2115 || res2.code != 2115) { | 
		
	
		
			
			|  |  |  | console.log(res.code); | 
		
	
		
			
			|  |  |  | // console.log(res2.code); | 
		
	
		
			
			|  |  |  | // || res2.code != 2115 | 
		
	
		
			
			|  |  |  | if (res.code != 2115) { | 
		
	
		
			
			|  |  |  | hasNewCreate.value = true; | 
		
	
		
			
			|  |  |  | const changeHasNewCreate = setTimeout(() => { | 
		
	
		
			
			|  |  |  | hasNewCreate.value = false; | 
		
	
		
			
			|  |  |  | }, 5000); | 
		
	
		
			
			|  |  |  | notGenerateList.value = []; | 
		
	
		
			
			|  |  |  | // notGenerateList2.value = []; | 
		
	
		
			
			|  |  |  | getPhotoVideoList(pageNum.value, pageSize.value, title.value); | 
		
	
		
			
			|  |  |  | } | 
		
	
		
			
			|  |  |  | } catch (error) {} | 
		
	
	
		
			
				|  |  | 
 |