Skip to content

Commit

Permalink
目录跳转
Browse files Browse the repository at this point in the history
  • Loading branch information
WuMing6616 committed Jul 2, 2024
1 parent f6aa3dc commit c5d562f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entry/src/main/ets/pages/view/Reader/ReaderPage.ets
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ struct ReaderPage {
})

async onPageShow() {
//详情页加了个传参,所以修改了一下params的类型,不影响之前的bookData,但需要多‘.’一次。看看大佬们可以怎么优化一下,上个页面BookDetailPage
//详情页加了个目录序号参数,所以修改了一下params的类型,不影响之前的bookData,但需要多‘.’一次。看看大佬们可以怎么优化一下,上个页面BookDetailPage
let temp = router.getParams() as ParamsObj
console.log('router ReaderPage:' + temp.bookData.fileLink)
this.txtFile = await FileHandler.readFile(temp.bookData.fileLink) //txt小说
Expand Down

0 comments on commit c5d562f

Please sign in to comment.