diff --git a/pages.json b/pages.json
index fabe1e79de24dd862e081486b961b88dffb77b16..d9caafd2d7bea6a9f4aeb537b68ee748558d7f19 100644
--- a/pages.json
+++ b/pages.json
@@ -159,6 +159,12 @@
"navigationBarTitleText": "getCurrentPages"
}
},
+ {
+ "path": "pages/API/get-launch-options-sync/get-launch-options-sync",
+ "style": {
+ "navigationBarTitleText": "getLaunchOptionsSync"
+ }
+ },
{
"path": "pages/API/navigator/navigator",
"style": {
diff --git a/pages/API/get-launch-options-sync/get-launch-options-sync.test.js b/pages/API/get-launch-options-sync/get-launch-options-sync.test.js
new file mode 100644
index 0000000000000000000000000000000000000000..1c603c6859c06fe41ea1d7ac0716dc18e7c34853
--- /dev/null
+++ b/pages/API/get-launch-options-sync/get-launch-options-sync.test.js
@@ -0,0 +1,11 @@
+const PAGE_PATH = '/pages/API/get-launch-options-sync/get-launch-options-sync'
+
+describe('getLaunchOptionsSync', () => {
+ it('getLaunchOptionsSync', async () => {
+ const page = await program.navigateTo(PAGE_PATH)
+ await page.waitFor(1000)
+ await page.callMethod('getLaunchOptionsSync')
+ const data = await page.data()
+ expect(data.checked).toBe(true)
+ })
+})
diff --git a/pages/API/get-launch-options-sync/get-launch-options-sync.uvue b/pages/API/get-launch-options-sync/get-launch-options-sync.uvue
new file mode 100644
index 0000000000000000000000000000000000000000..68d9d8b798c55b86828334e167cadba25ef019e4
--- /dev/null
+++ b/pages/API/get-launch-options-sync/get-launch-options-sync.uvue
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
diff --git a/pages/tabBar/API.uvue b/pages/tabBar/API.uvue
index bf20fe21f638085f5ddaacd8660bb9139fa01ce4..7db2676d65f8ed2a9f1afe35c5f0a67ee7bb2175 100644
--- a/pages/tabBar/API.uvue
+++ b/pages/tabBar/API.uvue
@@ -63,7 +63,6 @@
{
name: "获取启动参数",
url: "get-launch-options-sync",
- enable: false
}
] as Page[],
},