YM
2024-11-20 c8d1e1ed1d5c8d20a9aad8554d51001afb3c6312
src/App.vue
@@ -119,18 +119,20 @@
}
let bookId = getUrlParam('bookId')
let chapter = getUrlParam('chapter')
let startPage = getUrlParam('startPage')
let token = getUrlParam('token')
let tryPageCount = getUrlParam('tryPageCount')
if(bookId){
  localStorage.setItem('bookId', bookId)
}
if(tryPageCount){
  localStorage.setItem('tryPageCount', tryPageCount)
}
if(token && token != null && token != 'null'){
  localStorage.setItem('token', token)
}
if(chapter && startPage){
  localStorage.setItem('chapter', chapter)
  localStorage.setItem('startPage', startPage)
}
if (bookId) {
  router.replace({
    path: '/home',