|
|
@@ -155,7 +155,6 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
await api.fetchDetail(id);
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
React.useEffect(() => {
|
|
|
const id = location?.state?.id;
|
|
|
init(id);
|
|
|
@@ -679,8 +678,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
>
|
|
|
取消
|
|
|
</Button>
|
|
|
- {createFlag && (
|
|
|
- <Button
|
|
|
+ {createFlag && appId&&(<Button
|
|
|
type='primary'
|
|
|
className='btn-cancel'
|
|
|
onClick={() => {
|
|
|
@@ -690,6 +688,7 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
保存
|
|
|
</Button>
|
|
|
)}
|
|
|
+
|
|
|
{createFlag && (
|
|
|
<Button
|
|
|
type='primary'
|
|
|
@@ -1038,9 +1037,9 @@ const QuestionAnswerInfo: React.FC = () => {
|
|
|
</div>
|
|
|
</div>
|
|
|
</Splitter.Panel>
|
|
|
- <Splitter.Panel defaultSize="30%">
|
|
|
+ { appId&&(<Splitter.Panel defaultSize="30%">
|
|
|
<Chat appId={appId} />
|
|
|
- </Splitter.Panel>
|
|
|
+ </Splitter.Panel>)}
|
|
|
</Splitter>
|
|
|
</div>
|
|
|
</Form>
|