|
@@ -60,12 +60,13 @@
|
|
|
<span>下载</span>
|
|
<span>下载</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ v-if="video.cache != null"
|
|
|
type="danger"
|
|
type="danger"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
icon="el-icon-download"
|
|
icon="el-icon-download"
|
|
|
@click="cacheBiliVideo(video.videoId)"
|
|
@click="cacheBiliVideo(video.videoId)"
|
|
|
>
|
|
>
|
|
|
- <span>缓存</span>
|
|
|
|
|
|
|
+ <span>{{video.cache.msg}}</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
type="danger"
|
|
type="danger"
|
|
@@ -371,9 +372,10 @@ export default {
|
|
|
cacheBiliVideo(bvId) {
|
|
cacheBiliVideo(bvId) {
|
|
|
cacheBiliVideo(bvId).then(res => {
|
|
cacheBiliVideo(bvId).then(res => {
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
|
|
|
+ const resData = res.data
|
|
|
this.$notify({
|
|
this.$notify({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
- message: 'bili 视频正在缓存中',
|
|
|
|
|
|
|
+ message: resData.msg,
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
duration: 3000
|
|
duration: 3000
|
|
|
})
|
|
})
|