提交 a1637d47 authored 作者: 钟是志's avatar 钟是志

签名组件优化

上级 1ab0a62c
...@@ -2524,8 +2524,14 @@ ${obj[dataColumn.base52]} ...@@ -2524,8 +2524,14 @@ ${obj[dataColumn.base52]}
break; break;
case 'Signature': case 'Signature':
if (!obj[dataColumn.base52]) {
console.log('签名组件没有获取到图片地址', dataColumn.base52);
cm = '';
} else {
cm = ( cm = (
<img <img
data-cell-component={'Signature'}
data-cell-base52={dataColumn.base52}
src={config.httpServer + obj[dataColumn.base52]} src={config.httpServer + obj[dataColumn.base52]}
style={{ style={{
marginLeft: 5, marginLeft: 5,
...@@ -2537,6 +2543,8 @@ ${obj[dataColumn.base52]} ...@@ -2537,6 +2543,8 @@ ${obj[dataColumn.base52]}
}} }}
/> />
); );
}
break; break;
case 'ChildForm': case 'ChildForm':
......
...@@ -263,7 +263,7 @@ export const requestOrigin = (url, data, options = {}) => { ...@@ -263,7 +263,7 @@ export const requestOrigin = (url, data, options = {}) => {
options.prefix = ''; options.prefix = '';
} }
if (getToken()) { if (getToken()) {
options.headers = getHeaders().headers; options.headers = getHeaders(url).headers;
} }
return fetchRequest(url, { return fetchRequest(url, {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论