Selaa lähdekoodia

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

reghao 2 vuotta sitten
vanhempi
commit
45cec7f087
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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({