Преглед изворни кода

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

reghao пре 1 година
родитељ
комит
d0cc5ba281
1 измењених фајлова са 7 додато и 0 уклоњено
  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() {