提交 e2fce3f3 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 ab0cd13e
...@@ -59,7 +59,12 @@ const handleSuccess = (response: any, file: any, files: any) => { ...@@ -59,7 +59,12 @@ const handleSuccess = (response: any, file: any, files: any) => {
emit( emit(
'update:modelValue', 'update:modelValue',
files.map((item: any) => { files.map((item: any) => {
return { name: item.name, url: item.url || item.raw.url, size: item.raw.size, type: item.raw.type } return {
name: item.name,
url: item.url || item.raw?.url,
size: item.size || item.raw?.size,
type: item.type || item.raw?.type
}
}) })
) )
} else { } else {
......
...@@ -77,13 +77,13 @@ onMounted(() => { ...@@ -77,13 +77,13 @@ onMounted(() => {
label-position="top" label-position="top"
:disabled="disabled" :disabled="disabled"
> >
<el-form-item label="作业标题" prop="old_password"> <el-form-item label="作业标题" prop="title">
<el-input v-model="form.title" /> <el-input v-model="form.title" />
</el-form-item> </el-form-item>
<el-form-item label="作业正文" prop="password"> <el-form-item label="作业正文" prop="content">
<AppEditor v-model="form.content" :disabled="disabled" /> <AppEditor v-model="form.content" :disabled="disabled" />
</el-form-item> </el-form-item>
<el-form-item label="上传附件" prop="password_r"> <el-form-item label="上传附件" prop="attachments">
<AppUpload v-model="form.attachments" :disabled="disabled"></AppUpload> <AppUpload v-model="form.attachments" :disabled="disabled"></AppUpload>
</el-form-item> </el-form-item>
<div style="text-align: center"> <div style="text-align: center">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论