1
litian
2024-10-16 a8ca6dbb8dfcea7f8481e45c8f83222358f36577
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',