From 83ac3252f0326f5a49cdf7c26a5a4c78b5c76f9b Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 05 十一月 2024 15:48:11 +0800 Subject: [PATCH] 新书 --- src/App.vue | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/src/App.vue b/src/App.vue index c4ec7f5..c0d982a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -119,6 +119,8 @@ } let bookId = getUrlParam('bookId') +let chapter = getUrlParam('chapter') +let startPage = getUrlParam('startPage') let token = getUrlParam('token') if(bookId){ localStorage.setItem('bookId', bookId) @@ -127,6 +129,10 @@ 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