Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
259da261
Commit
259da261
authored
Mar 25, 2021
by
yuananting
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:导入编辑跳转报错bug修复
parent
9df8e385
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
src/modules/teach-tool/components/NewQuestionTab.jsx
+10
-1
No files found.
src/modules/teach-tool/components/NewQuestionTab.jsx
View file @
259da261
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yuananting
* @Author: yuananting
* @Date: 2021-02-25 14:34:29
* @Date: 2021-02-25 14:34:29
* @LastEditors: yuananting
* @LastEditors: yuananting
* @LastEditTime: 2021-03-2
4 14:15:12
* @LastEditTime: 2021-03-2
5 15:03:01
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Description: 助学工具-题库-题目管理-新建题目Tab
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -763,6 +763,15 @@ class NewQuestionTab extends Component {
...
@@ -763,6 +763,15 @@ class NewQuestionTab extends Component {
)
=>
{
)
=>
{
const
{
blanksList
}
=
this
.
state
;
const
{
blanksList
}
=
this
.
state
;
const
isGapFilling
=
this
.
props
.
questionTypeKey
===
"GAP_FILLING"
;
const
isGapFilling
=
this
.
props
.
questionTypeKey
===
"GAP_FILLING"
;
if
(
contentList
.
length
===
0
)
{
contentList
.
push
({
content
:
""
,
contentType
:
"QUESTION_ANSWER_DESC"
,
sort
:
0
,
textLength
:
0
,
type
:
"RICH_TEXT"
,
});
}
const
editorContent
=
_
.
find
(
const
editorContent
=
_
.
find
(
contentList
,
contentList
,
(
contentItem
)
=>
contentItem
.
type
===
"RICH_TEXT"
(
contentItem
)
=>
contentItem
.
type
===
"RICH_TEXT"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment