From 58e3b80c2d26b831900759bf8666c7fd9c759df5 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 05 十一月 2024 17:56:00 +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