Commit 86fb3308 by zhaochengxiang

资产项解析问题

parent 7947041b
......@@ -5,7 +5,13 @@ import { SettingFilled } from '@ant-design/icons';
import { AppContext } from '../../../../App';
const MetadataInfo = ({ value = '', config = true }) => {
const metadata = (typeof (value||'')==='string')?{}:JSON.parse(value);
let metadata = {};
try {
metadata = JSON.parse(value);
} catch(error) {
}
return (
<AppContext.Consumer>
......
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