提交 866df0c5 编写于 作者: D DCloud_LXH

fix: uni-id 的路由重定向

上级 21566eee
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册