Переглянути джерело

Merge remote-tracking branch 'origin/dev/permission' into dev/permission

# Conflicts:
#	src/pages/deepseek/questionAnswer/info/index.tsx
huiqi 5 місяців тому
батько
коміт
1fc06ceb10
1 змінених файлів з 4 додано та 5 видалено
  1. 4 5
      src/pages/deepseek/questionAnswer/info/index.tsx

+ 4 - 5
src/pages/deepseek/questionAnswer/info/index.tsx

@@ -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>