diff --git a/src/components/icon-font/index.tsx b/src/components/icon-font/index.tsx index fbe475ed..f4bf7f1f 100644 --- a/src/components/icon-font/index.tsx +++ b/src/components/icon-font/index.tsx @@ -2,7 +2,7 @@ import { createFromIconfontCN } from '@ant-design/icons'; // import './iconfont/iconfont.js'; 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; diff --git a/src/pages/llmodels/catalog.tsx b/src/pages/llmodels/catalog.tsx index 5fb38c64..b00717af 100644 --- a/src/pages/llmodels/catalog.tsx +++ b/src/pages/llmodels/catalog.tsx @@ -81,6 +81,7 @@ const Catalog: React.FC = () => { ...openDeployModal, show: false }); + setActiveId(-1); }; const handleResize = useCallback( diff --git a/src/pages/llmodels/components/catalog-item.tsx b/src/pages/llmodels/components/catalog-item.tsx index da46b9bf..44198d33 100644 --- a/src/pages/llmodels/components/catalog-item.tsx +++ b/src/pages/llmodels/components/catalog-item.tsx @@ -82,7 +82,7 @@ const CatalogItem: React.FC = (props) => { {_.map(data.licenses, (license: string, index: number) => { return ( - + {license} ); diff --git a/src/pages/llmodels/components/deploy-builtin-modal.tsx b/src/pages/llmodels/components/deploy-builtin-modal.tsx index cb1d7e1a..98c85953 100644 --- a/src/pages/llmodels/components/deploy-builtin-modal.tsx +++ b/src/pages/llmodels/components/deploy-builtin-modal.tsx @@ -128,7 +128,7 @@ const AddModal: React.FC = (props) => { selectSpecRef.current = spec; return { ..._.omit(spec, ['name']), - categories: _.get(spec, 'categories.0', null) + categories: _.get(current, 'categories.0', null) }; }; @@ -136,7 +136,7 @@ const AddModal: React.FC = (props) => { selectSpecRef.current = data; form.current?.setFieldsValue({ ..._.omit(data, ['name']), - categories: _.get(data, 'categories.0', null) + categories: _.get(current, 'categories.0', null) }); };