Explorar el Código

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

reghao hace 1 año
padre
commit
d0cc5ba281
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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() {