fix: default category
This commit is contained in:
@@ -2,7 +2,7 @@ import { createFromIconfontCN } from '@ant-design/icons';
|
|||||||
// import './iconfont/iconfont.js';
|
// import './iconfont/iconfont.js';
|
||||||
|
|
||||||
const IconFont = createFromIconfontCN({
|
const IconFont = createFromIconfontCN({
|
||||||
scriptUrl: '//at.alicdn.com/t/c/font_4613488_nlj2pbwi.js'
|
scriptUrl: '//at.alicdn.com/t/c/font_4613488_pz4284jx1rq.js'
|
||||||
});
|
});
|
||||||
|
|
||||||
export default IconFont;
|
export default IconFont;
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ const Catalog: React.FC = () => {
|
|||||||
...openDeployModal,
|
...openDeployModal,
|
||||||
show: false
|
show: false
|
||||||
});
|
});
|
||||||
|
setActiveId(-1);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleResize = useCallback(
|
const handleResize = useCallback(
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ const CatalogItem: React.FC<CatalogItemProps> = (props) => {
|
|||||||
{_.map(data.licenses, (license: string, index: number) => {
|
{_.map(data.licenses, (license: string, index: number) => {
|
||||||
return (
|
return (
|
||||||
<span key={license} className="flex-center m-r-16">
|
<span key={license} className="flex-center m-r-16">
|
||||||
<IconFont type="icon-justice" className="m-r-5"></IconFont>
|
<IconFont type="icon-justice1" className="m-r-5"></IconFont>
|
||||||
<span>{license}</span>
|
<span>{license}</span>
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
|
|||||||
selectSpecRef.current = spec;
|
selectSpecRef.current = spec;
|
||||||
return {
|
return {
|
||||||
..._.omit(spec, ['name']),
|
..._.omit(spec, ['name']),
|
||||||
categories: _.get(spec, 'categories.0', null)
|
categories: _.get(current, 'categories.0', null)
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -136,7 +136,7 @@ const AddModal: React.FC<AddModalProps> = (props) => {
|
|||||||
selectSpecRef.current = data;
|
selectSpecRef.current = data;
|
||||||
form.current?.setFieldsValue({
|
form.current?.setFieldsValue({
|
||||||
..._.omit(data, ['name']),
|
..._.omit(data, ['name']),
|
||||||
categories: _.get(data, 'categories.0', null)
|
categories: _.get(current, 'categories.0', null)
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user