|
@@ -117,7 +117,21 @@ export default {
|
|
|
this.category.push(name)
|
|
this.category.push(name)
|
|
|
this.categoryMap.Set(name, res.data[i])
|
|
this.categoryMap.Set(name, res.data[i])
|
|
|
}
|
|
}
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: error.message,
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
this.videoPageWrapper(this.currentPage, this.prevId, this.nextId, this.categoryId)
|
|
this.videoPageWrapper(this.currentPage, this.prevId, this.nextId, this.categoryId)
|
|
|
},
|
|
},
|
|
@@ -158,7 +172,21 @@ export default {
|
|
|
this.totalSize = resData.totalSize
|
|
this.totalSize = resData.totalSize
|
|
|
this.prevId = resData.prevId
|
|
this.prevId = resData.prevId
|
|
|
this.nextId = resData.nextId
|
|
this.nextId = resData.nextId
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: res.msg,
|
|
|
|
|
+ type: 'error',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
|
|
+ }).catch(error => {
|
|
|
|
|
+ this.$notify({
|
|
|
|
|
+ title: '提示',
|
|
|
|
|
+ message: error.message,
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ duration: 3000
|
|
|
|
|
+ })
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
chooseCategory(item, index) {
|
|
chooseCategory(item, index) {
|