优化初始化以及去掉固定供应商ID
This commit is contained in:
@ -77,9 +77,11 @@ const BaseInfoTab: React.FC<BaseInfoTabProps> = (props) => {
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
//供应商信息
|
||||
fetchData()
|
||||
}, []);
|
||||
if(record) {
|
||||
//供应商信息
|
||||
fetchData()
|
||||
}
|
||||
}, [record]);
|
||||
|
||||
if (!registerInfo?.coscoSupplierBase) return <div>{intl.formatMessage({ id: 'component.globalModal.loading' })}...</div>;
|
||||
|
||||
|
Reference in New Issue
Block a user