|
|
|
@ -144,8 +144,8 @@ const updateForm: React.FC<BasicLayoutProps> = (prop: any) => {
|
|
|
|
|
videoArr.push({
|
|
|
|
|
uid: item.uid,
|
|
|
|
|
name: item.name,
|
|
|
|
|
status: item.response && item.response.location ? 'done' : item.response && item.response.code == 2001 ? 'error' : 'uploading',
|
|
|
|
|
url: item.response ? item.response.location : item.response,
|
|
|
|
|
status: item.response && item.response.location || item.status === 'done' ? 'done' : item.response && item.response.code == 2001 ? 'error' : 'uploading',
|
|
|
|
|
url: item.url ? item.url : item.response ? item.response.location : item.response,
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
setVideoContent(JSON.stringify(videoArr));
|
|
|
|
@ -294,7 +294,7 @@ const updateForm: React.FC<BasicLayoutProps> = (prop: any) => {
|
|
|
|
|
valuePropName="fileList"
|
|
|
|
|
getValueFromEvent={normFile}
|
|
|
|
|
>
|
|
|
|
|
<Upload name="file" action="http://localhost:8899/oss/fileUpload">
|
|
|
|
|
<Upload name="file" action="http://47.92.229.12:8888/oss/fileUpload">
|
|
|
|
|
<Button icon={<UploadOutlined />}>上传附件</Button>
|
|
|
|
|
</Upload>
|
|
|
|
|
</Form.Item>
|
|
|
|
@ -310,7 +310,7 @@ const updateForm: React.FC<BasicLayoutProps> = (prop: any) => {
|
|
|
|
|
branding: false, // 去掉右下角的水印
|
|
|
|
|
// language_url: '/tinymce/langs/zh-Hans.js',//注意大小写
|
|
|
|
|
language: 'zh-Hans', //注意大小写
|
|
|
|
|
images_upload_url: 'http://localhost:8899/oss/imgUpload',
|
|
|
|
|
images_upload_url: 'http://47.92.229.12:8888/oss/imgUpload',
|
|
|
|
|
plugins: [
|
|
|
|
|
'advlist',
|
|
|
|
|
'autolink',
|
|
|
|
|