Forráskód Böngészése

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

reghao 2 éve
szülő
commit
45cec7f087
1 módosított fájl, 1 hozzáadás és 0 törlés
  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({