system组件,application数组为空渲染创建入口
This commit is contained in:
parent
cc939b6d87
commit
e109368a8d
|
|
@ -7,7 +7,7 @@ export default function render(props) {
|
|||
const { addItem, removeItem, clean, execute, t } = props.methods;
|
||||
const [createId, setCreateId] = useState('');
|
||||
const [removeId, setRemoveId] = useState('');
|
||||
if (applications?.length > 0) {
|
||||
if (systemId) {
|
||||
return (<>
|
||||
<Modal open={!!createId} width={500} onCancel={() => {
|
||||
clean();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export default function render(props: WebComponentProps<EntityDict, 'application
|
|||
const [createId, setCreateId] = useState('');
|
||||
const [removeId, setRemoveId] = useState('');
|
||||
|
||||
if (applications?.length > 0) {
|
||||
if (systemId) {
|
||||
return (
|
||||
<>
|
||||
<Modal
|
||||
|
|
|
|||
Loading…
Reference in New Issue