canghailong il y a 2 mois
Parent
commit
ba89b64056
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      src/views/resourceDetails/components/VideoDetails.vue

+ 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 = () => {