From 2f2433af8a8250b24d66036b4f5f39eff9f9faa0 Mon Sep 17 00:00:00 2001 From: King Zioywishing <539943419@qq.com> Date: Tue, 9 Jul 2024 17:22:33 +0800 Subject: [PATCH] =?UTF-8?q?update:24-07-09=2017:22:32=20-remark:=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=96=B0=E6=A0=87=E7=AD=BE=E9=A1=B5=E4=BC=A0=E5=8F=82?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=AC=94=E8=AE=B0=20-AutoCommit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aboutAETV.md | 27 +++++++++++++++++++++------ todoList.md | 1 + 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/aboutAETV.md b/aboutAETV.md index 345400a..bbbb831 100644 --- a/aboutAETV.md +++ b/aboutAETV.md @@ -48,6 +48,27 @@ { leading: true, trailing: false } ) ``` + + 然后就可以在项目中以如下方式进行调用: + ```ts + const { goToSingReplay } = useAddTabsPage() + // 传参 + goToSingReplay(data) + ``` + 此处传递的参数可以通过以下过程在新页面进行接收 + ```ts + const initData = () => { + onHostMessage('onload', async (data: any) => { + // data即为传递过来的参数 + ... + }) + } + // 必须在此生命周期进行 + onMounted(async () => { + initData() + }) + ``` + --- * apiFetch用法 @@ -95,12 +116,6 @@ // result结果会自动json解析,如{message:'success'...} ``` - 然后就可以在项目中以如下方式进行调用: - ```ts - const { goToSingReplay } = useAddTabsPage() - // 传参 - goToSingReplay(data) - ``` --- * apiFetch之结果预处理: diff --git a/todoList.md b/todoList.md index 5362b5b..7e53eea 100644 --- a/todoList.md +++ b/todoList.md @@ -14,6 +14,7 @@ * 把删除功能做完 (等后端) ## 学习目标 * 学习teach-webview的写法 (70%) +* 继续学习呼出页面相关内容 (学了如何在新页面传入数据) # 2024.7.8