diff --git a/docs/.vuepress/config/redirectRouter.js b/docs/.vuepress/config/redirectRouter.js index 646b265c1c0cdace0ff0b4940a1ba0bc2f354c4d..7f0cd79d2e19f2a15cefa6aae64b2ef653cdc93d 100644 --- a/docs/.vuepress/config/redirectRouter.js +++ b/docs/.vuepress/config/redirectRouter.js @@ -93,10 +93,10 @@ const routerMap = { '/m3w': '/uniCloud/uni-portal.html', '/tutorial/syntax-uts': '/uni-app-x/uts/', - '/uniCloud/uni-id-summary': '/uniCloud/uni-id/summary.html', - '/uniCloud/uni-id-pages': '/uniCloud/uni-id/redirect.html', - '/uniCloud/uni-id-common': '/uniCloud/uni-id/cloud-common.html', - '/uniCloud/uni-id': '/uniCloud/uni-id/old.html', + '/uniCloud/uni-id-summary.html': '/uniCloud/uni-id/summary.html', + '/uniCloud/uni-id-pages.html': '/uniCloud/uni-id/redirect.html', + '/uniCloud/uni-id-common.html': '/uniCloud/uni-id/cloud-common.html', + '/uniCloud/uni-id.html': '/uniCloud/uni-id/old.html', '/uts/': '/uni-app-x/uts/', '/uni-app-x/ext.html': '/uni-app-x/api/ext.html', '/uni-app-x/pagesjson.html': '/uni-app-x/collocation/pagesjson.html', @@ -113,7 +113,7 @@ export default ({ fullPath, path, hash }) => { } } - const matchPath = routerMap[path] + const matchPath = routerMap[path] || routerMap[path.replace('.html', '')] if (matchPath) { return { path: matchPath,