diff --git a/src/api/index.ts b/src/api/index.ts index b596808..3e83d88 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -769,7 +769,8 @@ export async function putmember(data: any): Promise{ language: data.languageValue, tlanguage: data.tlanguageValue, video: data.video, - desc: data.desc + desc: data.desc, + videoid: data.videoid } console.log(newdata) const res = await put(`member/${store.state.userinfo.memberid}`, newdata) diff --git a/src/store/index.ts b/src/store/index.ts index 3f300b6..12494fa 100644 --- a/src/store/index.ts +++ b/src/store/index.ts @@ -45,6 +45,7 @@ export default createStore({ uid: "", updatedAt: "", video: "", + videoid: 0, willsay: [{name: "请选择", level: 0}], willsayValue: [{name: "0", level: 0}], zoneStr: "中途岛GMT-11:00", diff --git a/src/utils/vod.ts b/src/utils/vod.ts index f716ff8..79acfd9 100644 --- a/src/utils/vod.ts +++ b/src/utils/vod.ts @@ -6,7 +6,7 @@ interface OnFunctio { } interface UploaderDone { - fileId: string; + fileId: number; video: { url: string; verify_content: string; diff --git a/src/views/mine/Archives.vue b/src/views/mine/Archives.vue index d523b78..030067f 100644 --- a/src/views/mine/Archives.vue +++ b/src/views/mine/Archives.vue @@ -932,6 +932,7 @@ export default defineComponent({ uploadprogress.value = info.percent.toFixed(2) * 100; }); userinfo.value.video = res.video.url; + userinfo.value.videoid = res.fileId; } if (formData.value.video != "") { diff --git a/src/views/mine/ReleaseWebcast.vue b/src/views/mine/ReleaseWebcast.vue index d59d7a7..2d85636 100644 --- a/src/views/mine/ReleaseWebcast.vue +++ b/src/views/mine/ReleaseWebcast.vue @@ -257,7 +257,7 @@ export default defineComponent({ const form = ref({ title: "", img: "", - fileid: "", + fileid: 0, fileurl: "", fileduration: 0, dateline: "",