From c5d562f085b5612dac44d0c4ed2893233ab22423 Mon Sep 17 00:00:00 2001 From: WuMing6616 <70556540+WuMing6616@users.noreply.github.com> Date: Tue, 2 Jul 2024 18:37:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/view/Reader/ReaderPage.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry/src/main/ets/pages/view/Reader/ReaderPage.ets b/entry/src/main/ets/pages/view/Reader/ReaderPage.ets index 7dba1166..2ce3b265 100644 --- a/entry/src/main/ets/pages/view/Reader/ReaderPage.ets +++ b/entry/src/main/ets/pages/view/Reader/ReaderPage.ets @@ -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小说