Commit e2fac3e6 authored by cellee's avatar cellee

报告员回复修改图片type

Signed-off-by: cellee's avatarcellee <893264950@qq.com>
parent bc16ef64
/*
* @Author: your name
* @Date: 2021-03-02 14:39:40
* @LastEditTime: 2021-03-08 17:03:53
* @LastEditTime: 2021-03-09 10:55:16
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\pages\AccountManagement\Service\serviceEdit.tsx
......@@ -130,8 +130,7 @@ const service = (props: any) => {
<PictureOptionsRow
action="/tos/image/upload"
data={{
// imageType: 'tosReportImage',
imageType: 'tosReplyImage',
imageType: 'tosReportImage',
identification: '',
}}
limitNums={10}
......@@ -200,7 +199,8 @@ const service = (props: any) => {
<PictureOptionsRow
action="/tos/image/upload"
data={{
imageType: 'tosReportImage',
// imageType: 'tosReportImage',
imageType: 'tosReplyImage',
identification: '',
}}
limitNums={10}
......
......@@ -155,7 +155,9 @@ const ContractContent = (props: any) => {
uid: i,
name: FileImg[i].fileName,
status: 'done',
type: FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase(),
type: FileImg[i].fileName
? FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase()
: 'jpg',
url: FileImg[i].fileUrl,
};
console.log();
......
......@@ -101,7 +101,9 @@ const ContractContent = (props: any) => {
uid: i,
name: FileImg[i].fileName,
status: 'done',
type: FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase(),
type: FileImg[i].fileName
? FileImg[i].fileName.match(/\.([^\.]+)$/)[1].toLowerCase()
: 'jpg',
url: FileImg[i].fileUrl,
};
console.log();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment