feat: model file chunk

This commit is contained in:
jialin
2024-09-06 19:27:59 +08:00
parent 58e9a4c742
commit 7b999e6692
4 changed files with 17 additions and 10 deletions
@@ -64,11 +64,8 @@ const UpdateModal: React.FC<AddModalProps> = (props) => {
});
}
if (action === PageAction.EDIT && open) {
const list = _.split(props.data?.ollama_library_model_name, ':');
form.setFieldsValue({
...props.data,
ollama_library_model_name: _.get(list, '0'),
tag: _.get(list, '1')
...props.data
});
}
};