Commit 20dd7dae authored by 涂伟's avatar 涂伟

fix: '卡片配置代码优化'

parent 436d0b72
Pipeline #70625 passed with stages
...@@ -306,7 +306,6 @@ const OptionEditModal = props => { ...@@ -306,7 +306,6 @@ const OptionEditModal = props => {
const add = () => { const add = () => {
let list = standList ? JSON.parse(JSON.stringify(standList)) : []; let list = standList ? JSON.parse(JSON.stringify(standList)) : [];
list.push({ name: '', pdfUrl: '' }); list.push({ name: '', pdfUrl: '' });
setPreviewVisible(true);
setStandList(list); setStandList(list);
}; };
const remove = index => { const remove = index => {
...@@ -318,8 +317,9 @@ const OptionEditModal = props => { ...@@ -318,8 +317,9 @@ const OptionEditModal = props => {
const preview = item => { const preview = item => {
setFileType(item.type); setFileType(item.type);
setFileUrl( setFileUrl(
`${window.origin + `${`${window.origin}/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath=`}${
'/PandaWorkFlow/WorkFlow/AccountManage/DownloadFiles?filePath='}${item.pdfUrl}`, item.pdfUrl
}`,
); );
setPreviewVisible(true); setPreviewVisible(true);
}; };
......
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