From 020d40734a2062300d8b1651a1688fc987590c0a Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期五, 22 十一月 2024 15:00:12 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TextbookReader --- 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