发布视频
This commit is contained in:
parent
f58ccbb11d
commit
9c0e6ffd39
@ -176,10 +176,19 @@ export async function liveadd(data:any) {
|
||||
/**
|
||||
* 发布视频
|
||||
*/
|
||||
export async function videoadd(data:any) {
|
||||
export async function videoadd( form: any,data: any) {
|
||||
const res=await post<Liveaddrule>('video',data)
|
||||
if(res.code==0){
|
||||
message.success("发布成功")
|
||||
form.value = {
|
||||
title: "",
|
||||
img: "",
|
||||
fileid: "",
|
||||
fileurl: "",
|
||||
fileduration: "",
|
||||
desc: "",
|
||||
video:[""],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -84,8 +84,8 @@
|
||||
<a-form-item label="母语" class="form-item">
|
||||
<a-input class="shuru" placeholder="请输入您的母语" />
|
||||
</a-form-item>
|
||||
<a-form-item label="授课语言" class="form-item">
|
||||
<a-select class="getcode" placeholder="请选择您的授课语言">
|
||||
<a-form-item label="教授" class="form-item">
|
||||
<a-select class="getcode" placeholder="请选择您的教授">
|
||||
<a-select-option value="Zhejiang">
|
||||
中国+0086
|
||||
</a-select-option>
|
||||
|
@ -32,7 +32,7 @@
|
||||
<a-input size="small" v-model:value="userinfo.live" placeholder="请输入居住地" />
|
||||
</div>
|
||||
<div class="input-box teach-lang">
|
||||
<div class="label">授课语言</div>
|
||||
<div class="label">教授</div>
|
||||
<a-select
|
||||
v-model:value="userinfo.tlanguage"
|
||||
style="width: 171px"
|
||||
|
@ -233,7 +233,7 @@ export default defineComponent({
|
||||
const onSubmit = async (e: FromSend) => {
|
||||
e.preventDefault();
|
||||
console.log(toRaw(form.value), 111);
|
||||
// videoadd(toRaw(form));
|
||||
videoadd(form, toRaw(form.value));
|
||||
};
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user