Explorar o código

FIX:数据结构定义错误

wjj %!s(int64=4) %!d(string=hai) anos
pai
achega
a78d609ead
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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}){