Commit 2f8bec55 by zhaochengxiang

资产自定义

parent aff703a6
...@@ -118,7 +118,7 @@ const AssetTree = (props) => { ...@@ -118,7 +118,7 @@ const AssetTree = (props) => {
setUpdateDirectoryAction('edit'); setUpdateDirectoryAction('edit');
setUpdateDirectoryModalVisible(true); setUpdateDirectoryModalVisible(true);
} else if (currentDirType === 'custom-root') { } else if (currentDirType === 'custom-root'|| currentDirType === 'custom') {
setCustomDirectoryAction('edit'); setCustomDirectoryAction('edit');
setCustomDirectoryModalVisible(true); setCustomDirectoryModalVisible(true);
...@@ -290,7 +290,7 @@ const AssetTree = (props) => { ...@@ -290,7 +290,7 @@ const AssetTree = (props) => {
<Button shape="circle" icon={<PlusOutlined />} onClick={addDir} disabled={currentDirType==='custom-root'||currentDirType==='custom'} /> <Button shape="circle" icon={<PlusOutlined />} onClick={addDir} disabled={currentDirType==='custom-root'||currentDirType==='custom'} />
</Tooltip> </Tooltip>
<Tooltip title="修改"> <Tooltip title="修改">
<Button shape="circle" icon={<EditOutlined />} onClick={editDir} disabled={currentDirType==='custom'}/> <Button shape="circle" icon={<EditOutlined />} onClick={editDir} />
</Tooltip> </Tooltip>
<Tooltip title="刷新"> <Tooltip title="刷新">
<Button shape="circle" icon={<SyncOutlined />} onClick={refreshTree} /> <Button shape="circle" icon={<SyncOutlined />} onClick={refreshTree} />
......
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