diff --git a/src/views/mission/mission.vue b/src/views/mission/mission.vue
index 62f68d0..2424b14 100644
--- a/src/views/mission/mission.vue
+++ b/src/views/mission/mission.vue
@@ -1075,10 +1075,10 @@
>
您的浏览器不支持视频播放
-
+
@@ -2136,6 +2136,8 @@ export default {
},
methods: {
async onVideoFileCHange(data) {
+ this.url='';
+ this.percentage = 0;
console.log(data);
const date = new Date();
const start =
@@ -2148,8 +2150,11 @@ export default {
const name = start + "/" + getUUID() + houzhui;
const fileRes = await this.ossClient.partUpload(name, data.raw, (p) => {
this.percentage = Math.floor(p * 100);
+ console.log(this.percentage)
+
// 这里可以根据进度做相应的处理,例如更新UI等
});
+ console.log('fileRes');
console.log(fileRes);
if (!fileRes) {
this.percentage = 0;
@@ -2693,6 +2698,7 @@ export default {
this.titles = "添加视频";
this.title = "";
this.url = "";
+ this.percentage=0;
this.videoId = "";
this.price = "";
this.titleImg = "";
@@ -2705,9 +2711,11 @@ export default {
},
// 修改视频
compileVideo(row) {
+ this.initOssClient();
this.titles = "修改视频";
this.title = row.courseDetailsName;
this.url = row.videoUrl;
+ this.percentage=0;
this.videoId = row.courseDetailsId;
this.isPrice = row.isPrice;
this.price = row.price;