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 { 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();
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue