feat: modify the type of the button

This commit is contained in:
shiweisong.ssw 2023-06-25 19:16:33 +08:00
parent c71bca8255
commit adfa718a63

View File

@ -55,7 +55,7 @@ const Index = () => {
render: (props) => { render: (props) => {
if (props.step === 0) { if (props.step === 0) {
return ( return (
<Button type="primary" onClick={async () => { <Button type="default" onClick={async () => {
if (knowledgeSpaceName === '') { if (knowledgeSpaceName === '') {
props.onSubmit?.() props.onSubmit?.()
} else { } else {
@ -86,7 +86,7 @@ const Index = () => {
); );
} else if (props.step === 1) { } else if (props.step === 1) {
return ( return (
<Button type="primary" onClick={() => props.onSubmit?.()}> <Button type="default" onClick={() => props.onSubmit?.()}>
Web Page {'>'} Web Page {'>'}
</Button> </Button>
); );
@ -97,7 +97,7 @@ const Index = () => {
Previous {'<'} Previous {'<'}
</Button>, </Button>,
<Button <Button
type="primary" type="default"
key="goToTree" key="goToTree"
onClick={async () => { onClick={async () => {
props.onSubmit?.(); props.onSubmit?.();