system组件,application数组为空渲染创建入口

This commit is contained in:
wkj 2025-01-14 11:15:02 +08:00
parent cc939b6d87
commit e109368a8d
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ export default function render(props) {
const { addItem, removeItem, clean, execute, t } = props.methods; const { addItem, removeItem, clean, execute, t } = props.methods;
const [createId, setCreateId] = useState(''); const [createId, setCreateId] = useState('');
const [removeId, setRemoveId] = useState(''); const [removeId, setRemoveId] = useState('');
if (applications?.length > 0) { if (systemId) {
return (<> return (<>
<Modal open={!!createId} width={500} onCancel={() => { <Modal open={!!createId} width={500} onCancel={() => {
clean(); clean();

View File

@ -15,7 +15,7 @@ export default function render(props: WebComponentProps<EntityDict, 'application
const [createId, setCreateId] = useState(''); const [createId, setCreateId] = useState('');
const [removeId, setRemoveId] = useState(''); const [removeId, setRemoveId] = useState('');
if (applications?.length > 0) { if (systemId) {
return ( return (
<> <>
<Modal <Modal