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

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

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