Преглед изворни кода

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/wechat into dev

yuantianjiao пре 6 година
родитељ
комит
95db97bc0e
1 измењених фајлова са 10 додато и 0 уклоњено
  1. 10
    0
      src/store/book/index.js

+ 10
- 0
src/store/book/index.js Прегледај датотеку

@@ -32,6 +32,16 @@ export default {
32 32
         }
33 33
         return x
34 34
       })}
35
+      // let list = state.recommends.list
36
+      // list = list.map(x => {
37
+      //   if(x.BookId == bookid){
38
+      //     x.LeftNum = x.LeftNum - 1
39
+      //     return x
40
+      //   }
41
+      //   return x
42
+      // })
43
+      // list.splice(list.findIndex(item => item.LeftNum < 1), 1)
44
+      // state.recommends = {...state.recommends, list}
35 45
     },
36 46
     updateBookLeftNum(state, bookid) {
37 47
       state.books = {...state.books, list: state.books.list.map(x => {