上传videoid

This commit is contained in:
luyuan 2020-11-13 17:21:16 +08:00
parent 25c2f49576
commit d1a3115ed4
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
5 changed files with 6 additions and 3 deletions

View File

@ -769,7 +769,8 @@ export async function putmember(data: any): Promise<any>{
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<Liveaddrule>(`member/${store.state.userinfo.memberid}`, newdata)

View File

@ -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",

View File

@ -6,7 +6,7 @@ interface OnFunctio {
}
interface UploaderDone {
fileId: string;
fileId: number;
video: {
url: string;
verify_content: string;

View File

@ -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 != "") {

View File

@ -257,7 +257,7 @@ export default defineComponent({
const form = ref({
title: "",
img: "",
fileid: "",
fileid: 0,
fileurl: "",
fileduration: 0,
dateline: "",