taha12322 3 years ago
commit 73301a5c50
  1. BIN
      public/files/Alice.epub
  2. BIN
      public/files/book.epub2
  3. BIN
      public/files/book2.epub
  4. 13
      src/slices/book.ts

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -64,6 +64,19 @@ const bookSlice = createSlice({
}, },
/** CurrentPage 갱신 @dispatch */ /** CurrentPage 갱신 @dispatch */
updateCurrentPage(state, action: PayloadAction<Page>) { updateCurrentPage(state, action: PayloadAction<Page>) {
<<<<<<< HEAD
=======
if (
state.currentLocation.currentPage == action.payload.currentPage &&
action.payload.chapterName
) {
console.log(JSON.parse(JSON.stringify(state)));
// let c = current(state)
// let x = [...c.toc];
// console.log(x[1]);
console.log("فصل بعد");
}
>>>>>>> e8ebd6db27fa5c5048decd0d52f266d83a8cf52c
state.currentLocation = action.payload; state.currentLocation = action.payload;
}, },
/** Book 초기화 @dispatch */ /** Book 초기화 @dispatch */

Loading…
Cancel
Save