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

签名组件优化

上级 1ab0a62c
...@@ -2524,19 +2524,27 @@ ${obj[dataColumn.base52]} ...@@ -2524,19 +2524,27 @@ ${obj[dataColumn.base52]}
break; break;
case 'Signature': case 'Signature':
cm = ( if (!obj[dataColumn.base52]) {
<img console.log('签名组件没有获取到图片地址', dataColumn.base52);
src={config.httpServer + obj[dataColumn.base52]} cm = '';
style={{ } else {
marginLeft: 5, cm = (
width: <img
get === 'mobile' data-cell-component={'Signature'}
? document.documentElement.clientWidth - 10 || document.body.clientWidth - 10 data-cell-base52={dataColumn.base52}
: json.width, src={config.httpServer + obj[dataColumn.base52]}
height: get === 'mobile' ? '' : json.height, style={{
}} marginLeft: 5,
/> width:
); get === 'mobile'
? document.documentElement.clientWidth - 10 || document.body.clientWidth - 10
: json.width,
height: get === 'mobile' ? '' : json.height,
}}
/>
);
}
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论