From 4f049fc0da323155b42000b96f05d9e46c338ddf Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 20 十一月 2024 15:54:40 +0800 Subject: [PATCH] 公式输出 --- src/App.vue | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 93c6e67..c0d982a 100644 --- a/src/App.vue +++ b/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', -- Gitblit v1.9.1