Commit d0427b33 by maolipeng

Merge branch 'feature/maolipeng/20210610/zuhuyouhua' into dev

parents 45ab215b f7b12473
...@@ -98,10 +98,8 @@ class LiveCourseList extends React.Component { ...@@ -98,10 +98,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