Parcourir la source

VideoPage 中获取的视频不存在则跳转到 404

reghao il y a 2 ans
Parent
commit
45cec7f087
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/views/home/VideoPage.vue

+ 1 - 0
src/views/home/VideoPage.vue

@@ -261,6 +261,7 @@ export default {
             type: 'warning',
             duration: 3000
           })
+          this.$router.push('/404')
         }
       }).catch(error => {
         this.$notify.error({