Commit f7b12473 by maolipeng

fix:XMQXY-411

parent 062b3193
...@@ -101,10 +101,8 @@ class LiveCourseList extends React.Component { ...@@ -101,10 +101,8 @@ class LiveCourseList extends React.Component {
let _shelfState = item.shelfState; let _shelfState = item.shelfState;
if (_shelfState === 'NO') { if (_shelfState === 'NO') {
_shelfState = 'YES'; _shelfState = 'YES';
item.shelfState = 'YES';
} else { } else {
_shelfState = 'NO'; _shelfState = 'NO';
item.shelfState = 'NO';
} }
const params={ const params={
"liveCourseId": item.liveCourseId, "liveCourseId": item.liveCourseId,
......
...@@ -300,10 +300,8 @@ class GraphicsCourseList extends React.Component { ...@@ -300,10 +300,8 @@ class GraphicsCourseList extends React.Component {
let _shelfState = item.shelfState let _shelfState = item.shelfState
if(_shelfState==='NO'){ if(_shelfState==='NO'){
_shelfState = "YES"; _shelfState = "YES";
item.shelfState = "YES"
}else{ }else{
_shelfState = "NO" _shelfState = "NO"
item.shelfState = "NO"
} }
const params={ const params={
courseId: item.id, courseId: item.id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment