Sfoglia il codice sorgente

FIX:数据结构定义错误

wjj 4 anni fa
parent
commit
a78d609ead
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      src/components/GlobalHeader/RightContent.jsx
  2. 1 1
      src/models/report.js

+ 1 - 1
src/components/GlobalHeader/RightContent.jsx

@@ -29,7 +29,7 @@ const GlobalHeaderRight = (props) => {
   return (
     <div className={className}>
       {/*<NoticeIconView />*/}
-      <h3>{taskName}</h3>
+      <h3>{taskName || ''}</h3>
       {/*<SelectLang className={styles.action}/>*/}
     </div>
   );

+ 1 - 1
src/models/report.js

@@ -3,7 +3,7 @@ import { getExamInfo } from '@/pages/edit/service';
 const ReportModel = {
   namespace: 'report',
   state: {
-    taskName: {},
+    taskName: '',
   },
   effects: {
     * getTaskName({ payload }, { call, put}){