Commit da56c2d9 by zhaochengxiang

bug fix

parent fcf34097
...@@ -785,7 +785,7 @@ const AssetManageTree = (props) => { ...@@ -785,7 +785,7 @@ const AssetManageTree = (props) => {
getAllDirectoryAsTree(true) getAllDirectoryAsTree(true)
}, 100) }, 100)
}} }}
style={{ width: 65 }} style={{ width: 80 }}
> >
{ {
(templates??[]).map((item, index) => <Select.Option key={index} value={item.type}>{item.name}</Select.Option>) (templates??[]).map((item, index) => <Select.Option key={index} value={item.type}>{item.name}</Select.Option>)
......
...@@ -30,6 +30,7 @@ const { Column } = Table; ...@@ -30,6 +30,7 @@ const { Column } = Table;
//资产项 //资产项
const AssetItem = (props) => { const AssetItem = (props) => {
const { metadata } = props; const { metadata } = props;
const app = useContext(AppContext);
let content = ''; let content = '';
if (typeof metadata==='string') { if (typeof metadata==='string') {
...@@ -1034,7 +1035,7 @@ const AssetTable = (props) => { ...@@ -1034,7 +1035,7 @@ const AssetTable = (props) => {
LocalStorage.set(`templateType-${appId}`, val); LocalStorage.set(`templateType-${appId}`, val);
setPagination({ ...pagination, pageNum: 1 }); setPagination({ ...pagination, pageNum: 1 });
}} }}
style={{ width: 80 }} style={{ width: 100 }}
> >
{ {
(templates??[]).map((item, index) => <Select.Option key={index} value={item.type}>{item.name}</Select.Option>) (templates??[]).map((item, index) => <Select.Option key={index} value={item.type}>{item.name}</Select.Option>)
......
...@@ -587,7 +587,7 @@ const AssetTree = (props) => { ...@@ -587,7 +587,7 @@ const AssetTree = (props) => {
getAllDirectoryAsTree(true) getAllDirectoryAsTree(true)
}, 100) }, 100)
}} }}
style={{ width: 65 }} style={{ width: 80 }}
> >
{ {
(templates??[]).map((item, index) => <Select.Option key={index} value={item.type}>{item.name}</Select.Option>) (templates??[]).map((item, index) => <Select.Option key={index} value={item.type}>{item.name}</Select.Option>)
......
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