Browse Source

没权限

canghailong 2 months ago
parent
commit
ba89b64056
1 changed files with 2 additions and 3 deletions
  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 = () => {