提交 81fbefe1 编写于 作者: D DCloud_LXH

feat: uts plugin redirect

上级 21243dc1
......@@ -115,6 +115,9 @@ function fileNameToLowerCase (path) {
}
export default ({ fullPath, path, hash }) => {
if (!hash && fullPath !== path) {
hash = fullPath.replace(path, '').replace('?id=', '#')
}
fullPath = decodeURIComponent(fullPath)
const matchFullPath = routerMap[fullPath.replace('?id=', '#').replace('.html', '')];
if (matchFullPath) {
......@@ -141,6 +144,16 @@ export default ({ fullPath, path, hash }) => {
}
}
const matchUTSPlugin = path.match(/\/(plugin\/uts-\S+(\.html)*\S*)/)
if (matchUTSPlugin) {
const utsPluginPath = matchUTSPlugin[1]
return {
path: routerMap['/uni-app-x/'] + utsPluginPath,
hash,
replace: true
}
}
const routerMapKeys = Object.keys(routerMap)
let returnPathConfig = null
routerMapKeys.forEach(key => {
......
# HarmonyOS Next 华为账号登录 @harmonyos-next-huawei-login
# HarmonyOS Next 华为账号登录 @harmonyos-next-huawei-login <Badge text="HBuilderX 4.31+" />
根据华为应用市场上架审核要求,如果应用支持用户使用第三方账号登录,则该应用需提供华为账号登录选项 [文档](https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/account-detailedrules-V5)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册