Sfoglia il codice sorgente

home/Index.vue 的 videoRecommendWrapper 方法添加 catch 块

reghao 1 anno fa
parent
commit
d0cc5ba281
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      src/views/home/Index.vue

+ 7 - 0
src/views/home/Index.vue

@@ -121,6 +121,13 @@ export default {
             }
           )
         }
+      }).catch(error => {
+        this.$notify({
+          title: '提示',
+          message: error.message,
+          type: 'warning',
+          duration: 3000
+        })
       })
     },
     load() {