canghailong před 2 měsíci
rodič
revize
ba89b64056

+ 2 - 3
src/views/resourceDetails/components/VideoDetails.vue

@@ -316,11 +316,10 @@ const upDataList = (item) => {
 			if (res.code == 200) {
 				talkNum.value = res.data.commentNum
 				collectNum.value = res.data.collectNum
+			}else{
+				this.$router.push({ path:'/noPermissions' })
 			}
 		})
-		.catch((err) => {
-			this.$router.push({ path:'/noPermissions' })
-		})
 }
 
 const fetchData = () => {