From f9ddc8a7899ca6516cd2d1bc4b68c419c1e1ff1e Mon Sep 17 00:00:00 2001 From: dongyouyi 30041373 Date: Thu, 22 Jan 2026 10:29:41 +0800 Subject: [PATCH] fix: add missing comma in :prefix prop object to fix syntax error --- docs/guide/sync.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guide/sync.md b/docs/guide/sync.md index 3fb85ff49..890c85509 100644 --- a/docs/guide/sync.md +++ b/docs/guide/sync.md @@ -1,4 +1,5 @@ # 路由同步 + ## 路由同步 路由同步会将子应用路径的`path+query+hash`通过`window.encodeURIComponent`编码后挂载在主应用`url`的查询参数上,其中`key`值为子应用的 [name](/api/startApp.html#name)。 @@ -28,11 +29,10 @@ :sync="true" :prefix="{ prod: '/example/prod', - test: '/example/test' + test: '/example/test', prodId: '/example/prod/debug?id=', }" > - ``` 此时子应用不同路径将转换如下: