Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
355c2c93
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3597
Star
108
Fork
921
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
120
列表
看板
标记
里程碑
合并请求
109
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
120
Issue
120
列表
看板
标记
里程碑
合并请求
109
合并请求
109
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
355c2c93
编写于
7月 07, 2022
作者:
DCloud_JSON
提交者:
Gitee
7月 07, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
重定向uni-push2.0文档
上级
86402e4e
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
120 addition
and
119 deletion
+120
-119
docs/.vuepress/theme/config/redirectRouter.js
docs/.vuepress/theme/config/redirectRouter.js
+120
-119
未找到文件。
docs/.vuepress/theme/config/redirectRouter.js
浏览文件 @
355c2c93
const
routerMap
=
{
const
routerMap
=
{
'
/collocation/frame/lifecycle#页面生命周期
'
:
'
/tutorial/page.html#lifecycle
'
,
'
/uniCloud/uni-push/introduction.html
'
:
'
/unipush-v2.html
'
,
'
/api/lifetime
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/lifecycle#页面生命周期
'
:
'
/tutorial/page.html#lifecycle
'
,
'
/collocation/frame/lifecycle#应用生命周期
'
:
'
/collocation/App.html#applifecycle
'
,
'
/api/lifetime
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/lifetime
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/lifecycle#应用生命周期
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/lifecycle
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/lifetime
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/communication
'
:
'
/tutorial/page.html#页面通讯
'
,
'
/collocation/frame/lifecycle
'
:
'
/collocation/App.html#applifecycle
'
,
'
/collocation/frame/lifecycle#page
'
:
'
/tutorial/page.html#lifecycle
'
,
'
/collocation/frame/communication
'
:
'
/tutorial/page.html#页面通讯
'
,
'
/collocation/frame/lifecycle#component
'
:
'
/tutorial/page.html#componentlifecycle
'
,
'
/collocation/frame/lifecycle#page
'
:
'
/tutorial/page.html#lifecycle
'
,
'
/collocation/frame/timer
'
:
'
/api/timer.html
'
,
'
/collocation/frame/lifecycle#component
'
:
'
/tutorial/page.html#componentlifecycle
'
,
'
/collocation/auto/hbuilderx-extension/index
'
:
'
/worktile/auto/hbuilderx-extension/
'
,
'
/collocation/frame/timer
'
:
'
/api/timer.html
'
,
'
/collocation/auto/hbuilderx-extension/
'
:
'
/worktile/auto/hbuilderx-extension/
'
,
'
/collocation/auto/hbuilderx-extension/index
'
:
'
/worktile/auto/hbuilderx-extension/
'
,
'
/collocation/auto/quick-start
'
:
'
/worktile/auto/quick-start.html
'
,
'
/collocation/auto/hbuilderx-extension/
'
:
'
/worktile/auto/hbuilderx-extension/
'
,
'
/collocation/auto/uniapp-cli-project
'
:
'
/worktile/auto/uniapp-cli-project.html
'
,
'
/collocation/auto/quick-start
'
:
'
/worktile/auto/quick-start.html
'
,
'
/collocation/i18n
'
:
'
/tutorial/i18n.html
'
,
'
/collocation/auto/uniapp-cli-project
'
:
'
/worktile/auto/uniapp-cli-project.html
'
,
'
/worktile/i18n
'
:
'
/tutorial/i18n.html
'
,
'
/collocation/i18n
'
:
'
/tutorial/i18n.html
'
,
'
/worktile/i18n.html
'
:
'
/tutorial/i18n.html
'
,
'
/worktile/i18n
'
:
'
/tutorial/i18n.html
'
,
'
/collocation/env
'
:
'
/tutorial/env.html
'
,
'
/worktile/i18n.html
'
:
'
/tutorial/i18n.html
'
,
'
/collocation/ssr
'
:
'
/tutorial/ssr.html
'
,
'
/collocation/env
'
:
'
/tutorial/env.html
'
,
'
/ssr
'
:
'
/tutorial/ssr.html
'
,
'
/collocation/ssr
'
:
'
/tutorial/ssr.html
'
,
'
/ssr/
'
:
'
/tutorial/ssr.html
'
,
'
/ssr
'
:
'
/tutorial/ssr.html
'
,
'
/collocation/frame/window
'
:
'
/tutorial/page.html#getapp
'
,
'
/ssr/
'
:
'
/tutorial/ssr.html
'
,
'
/collocation/frame/window#getcurrentpages
'
:
'
/tutorial/page.html#getcurrentpages
'
,
'
/collocation/frame/window
'
:
'
/tutorial/page.html#getapp
'
,
'
/collocation/auto/api
'
:
'
/worktile/auto/api.html
'
,
'
/collocation/frame/window#getcurrentpages
'
:
'
/tutorial/page.html#getcurrentpages
'
,
'
/collocation/frame/log
'
:
'
/api/log.html
'
,
'
/collocation/auto/api
'
:
'
/worktile/auto/api.html
'
,
'
/collocation/frame/log
'
:
'
/api/log.html
'
,
'
/component/mp-weixin-plugin
'
:
'
/tutorial/mp-weixin-plugin.html
'
,
'
/component/uniui
'
:
'
/component/uniui/uni-ui.html
'
,
'
/component/mp-weixin-plugin
'
:
'
/tutorial/mp-weixin-plugin.html
'
,
'
/component/uniui
'
:
'
/component/uniui/uni-ui.html
'
,
'
/frame
'
:
'
/tutorial/
'
,
'
/frame#renderjs
'
:
'
/tutorial/renderjs.html
'
,
'
/frame
'
:
'
/tutorial/
'
,
'
/frame#css变量
'
:
'
/tutorial/syntax-css.html#css-变量
'
,
'
/frame#renderjs
'
:
'
/tutorial/renderjs.html
'
,
'
/frame#css引入静态资源
'
:
'
/tutorial/page-static-assets.html
'
,
'
/frame#css变量
'
:
'
/tutorial/syntax-css.html#css-变量
'
,
'
/frame#js文件引入
'
:
'
/tutorial/page-script.html
'
,
'
/frame#css引入静态资源
'
:
'
/tutorial/page-static-assets.html
'
,
'
/frame#字体图标
'
:
'
/tutorial/syntax-css.html#字体图标
'
,
'
/frame#js文件引入
'
:
'
/tutorial/page-script.html
'
,
'
/frame#wxs
'
:
'
/tutorial/miniprogram-subject.html#wxs
'
,
'
/frame#字体图标
'
:
'
/tutorial/syntax-css.html#字体图标
'
,
'
/frame#flex布局
'
:
'
/tutorial/syntax-css.html#flex-布局
'
,
'
/frame#wxs
'
:
'
/tutorial/miniprogram-subject.html#wxs
'
,
'
/frame#npm支持
'
:
'
/tutorial/page-script.html#npm支持
'
,
'
/frame#flex布局
'
:
'
/tutorial/syntax-css.html#flex-布局
'
,
'
/frame#尺寸单位
'
:
'
/tutorial/syntax-css.html#尺寸单位
'
,
'
/frame#npm支持
'
:
'
/tutorial/page-script.html#npm支持
'
,
'
/frame#目录结构
'
:
'
/tutorial/project.html#目录结构
'
,
'
/frame#尺寸单位
'
:
'
/tutorial/syntax-css.html#尺寸单位
'
,
'
/frame#路由跳转
'
:
'
/tutorial/page.html#路由跳转
'
,
'
/frame#目录结构
'
:
'
/tutorial/project.html#目录结构
'
,
'
/frame#小程序组件支持
'
:
'
/tutorial/miniprogram-subject.html
'
,
'
/frame#路由跳转
'
:
'
/tutorial/page.html#路由跳转
'
,
'
/frame#小程序自定义组件支持
'
:
'
/tutorial/miniprogram-subject.html#小程序自定义组件支持
'
,
'
/frame#小程序组件支持
'
:
'
/tutorial/miniprogram-subject.html
'
,
'
/frame#判断平台
'
:
'
/worktile/running-env.html#判断平台
'
,
'
/frame#小程序自定义组件支持
'
:
'
/tutorial/miniprogram-subject.html#小程序自定义组件支持
'
,
'
/frame#typescript-支持
'
:
'
/tutorial/typescript-subject.html#typescript-支持
'
,
'
/frame#判断平台
'
:
'
/worktile/running-env.html#判断平台
'
,
'
/frame#全局样式与局部样式
'
:
'
/tutorial/syntax-css.html#全局样式与局部样式
'
,
'
/frame#typescript-支持
'
:
'
/tutorial/typescript-subject.html#typescript-支持
'
,
'
/frame#注意事项-1
'
:
'
/tutorial/renderjs.html#注意事项
'
,
'
/frame#全局样式与局部样式
'
:
'
/tutorial/syntax-css.html#全局样式与局部样式
'
,
'
/frame#注意事项-1
'
:
'
/tutorial/renderjs.html#注意事项
'
,
'
/api/ui/language
'
:
'
/api/ui/locale.html
'
,
'
/api/ad/rewarded-video-ad
'
:
'
/api/a-d/rewarded-video.html
'
,
'
/api/ui/language
'
:
'
/api/ui/locale.html
'
,
'
/api/a-d/rewarded-video-ad
'
:
'
/api/a-d/rewarded-video.html
'
,
'
/api/ad/rewarded-video-ad
'
:
'
/api/a-d/rewarded-video.html
'
,
'
/api/ad/interstitial-ad
'
:
'
/api/a-d/interstitial.html
'
,
'
/api/a-d/rewarded-video-ad
'
:
'
/api/a-d/rewarded-video.html
'
,
'
/api/ui/navigate
'
:
'
/api/router.html
'
,
'
/api/ad/interstitial-ad
'
:
'
/api/a-d/interstitial.html
'
,
'
/api/plugins/getLaunchOptionsSync
'
:
'
/api/getLaunchOptionsSync.html
'
,
'
/api/ui/navigate
'
:
'
/api/router.html
'
,
'
/api/plugins/getEnterOptionsSync
'
:
'
/api/getEnterOptionsSync.html
'
,
'
/api/plugins/getLaunchOptionsSync
'
:
'
/api/getLaunchOptionsSync.html
'
,
'
/api/plugins/getLaunchOptionsSync.html
'
:
'
/api/getLaunchOptionsSync.html
'
,
'
/api/plugins/getEnterOptionsSync
'
:
'
/api/getEnterOptionsSync.html
'
,
'
/api/plugins/getEnterOptionsSync.html
'
:
'
/api/getEnterOptionsSync.html
'
,
'
/api/plugins/getLaunchOptionsSync.html
'
:
'
/api/getLaunchOptionsSync.html
'
,
'
/api/plugins/getEnterOptionsSync.html
'
:
'
/api/getEnterOptionsSync.html
'
,
'
/platform
'
:
'
/tutorial/platform.html
'
,
'
/nvue-event
'
:
'
/tutorial/nvue-event.html
'
,
'
/platform
'
:
'
/tutorial/platform.html
'
,
'
/nvue-event
'
:
'
/tutorial/nvue-event.html
'
,
'
/api/extend/native-plugin
'
:
'
/plugin/native-plugin.html
'
,
'
/use-html5plus
'
:
'
/tutorial/use-html5plus.html
'
,
'
/api/extend/native-plugin
'
:
'
/plugin/native-plugin.html
'
,
'
/use-html5plus
'
:
'
/tutorial/use-html5plus.html
'
,
'
/vue-components
'
:
'
/tutorial/vue-components.html
'
,
'
/vue-components.html
'
:
'
/tutorial/vue-components.html
'
,
'
/vue-components
'
:
'
/tutorial/vue-components.html
'
,
'
/vue-basics
'
:
'
/tutorial/vue-basics.html
'
,
'
/vue-components.html
'
:
'
/tutorial/vue-components.html
'
,
'
/vue-api
'
:
'
/tutorial/vue-api.html
'
,
'
/vue-basics
'
:
'
/tutorial/vue-basics.html
'
,
'
/vue-vuex
'
:
'
/tutorial/vue-vuex.html
'
,
'
/vue-api
'
:
'
/tutorial/vue-api.html
'
,
'
/vue3-api
'
:
'
/tutorial/vue3-api.html
'
,
'
/vue-vuex
'
:
'
/tutorial/vue-vuex.html
'
,
'
/vue3-basics
'
:
'
/tutorial/vue3-basics.html
'
,
'
/vue3-api
'
:
'
/tutorial/vue3-api.html
'
,
'
/vue3-vuex
'
:
'
/tutorial/vue3-vuex.html
'
,
'
/vue3-basics
'
:
'
/tutorial/vue3-basics.html
'
,
'
/vue3-components
'
:
'
/tutorial/vue3-components.html
'
,
'
/vue3-vuex
'
:
'
/tutorial/vue3-vuex.html
'
,
'
/migration-to-vue3
'
:
'
/tutorial/migration-to-vue3.html
'
,
'
/vue3-components
'
:
'
/tutorial/vue3-components.html
'
,
'
/migration-to-vue3
'
:
'
/tutorial/migration-to-vue3.html
'
,
'
/nvue-outline
'
:
'
/tutorial/nvue-outline.html
'
,
'
/nvue-api
'
:
'
/tutorial/nvue-api.html
'
,
'
/nvue-outline
'
:
'
/tutorial/nvue-outline.html
'
,
'
/nvue-css
'
:
'
/tutorial/nvue-css.html
'
,
'
/nvue-api
'
:
'
/tutorial/nvue-api.html
'
,
'
/nvue-css
'
:
'
/tutorial/nvue-css.html
'
,
'
/uniCloud/database
'
:
'
/uniCloud/clientdb.html
'
,
'
/uniCloud/uni-clientDB
'
:
'
/uniCloud/clientdb.html
'
,
'
/uniCloud/database
'
:
'
/uniCloud/clientdb.html
'
,
'
/uniCloud/uni-data-picker
'
:
'
/component/uniui/uni-data-picker.html
'
,
'
/uniCloud/uni-clientDB
'
:
'
/uniCloud/clientdb.html
'
,
'
/uniCloud/uni-data-picker
'
:
'
/component/uniui/uni-data-picker.html
'
,
'
/plugin/hybrid
'
:
'
/hybrid.html
'
,
'
/adapt
'
:
'
/tutorial/adapt.html
'
,
'
/plugin/hybrid
'
:
'
/hybrid.html
'
,
'
/share
'
:
'
/api/plugins/share.html
'
,
'
/adapt
'
:
'
/tutorial/adapt.html
'
,
'
/performance
'
:
'
/tutorial/performance.html
'
,
'
/share
'
:
'
/api/plugins/share.html
'
,
'
/use-weex
'
:
'
/tutorial/nvue-outline.html
'
,
'
/performance
'
:
'
/tutorial/performance.html
'
,
'
/uni_modules
'
:
'
/plugin/uni_modules.html
'
,
'
/use-weex
'
:
'
/tutorial/nvue-outline.html
'
,
'
/snippet
'
:
'
/tutorial/snippet.html
'
,
'
/uni_modules
'
:
'
/plugin/uni_modules.html
'
,
'
/store
'
:
'
/tutorial/store.html
'
,
'
/snippet
'
:
'
/tutorial/snippet.html
'
,
}
'
/store
'
:
'
/tutorial/store.html
'
,
}
export
default
({
fullPath
,
path
,
hash
})
=>
{
fullPath
=
decodeURIComponent
(
fullPath
)
export
default
({
fullPath
,
path
,
hash
})
=>
{
const
matchFullPath
=
routerMap
[
fullPath
.
replace
(
'
?id=
'
,
'
#
'
)];
fullPath
=
decodeURIComponent
(
fullPath
)
if
(
matchFullPath
)
{
const
matchFullPath
=
routerMap
[
fullPath
.
replace
(
'
?id=
'
,
'
#
'
)];
return
{
if
(
matchFullPath
)
{
path
:
matchFullPath
,
return
{
replace
:
true
path
:
matchFullPath
,
}
replace
:
true
}
}
}
const
matchPath
=
routerMap
[
path
]
if
(
matchPath
)
{
const
matchPath
=
routerMap
[
path
]
return
{
if
(
matchPath
)
{
path
:
matchPath
,
return
{
hash
,
path
:
matchPath
,
replace
:
true
hash
,
}
replace
:
true
}
}
}
if
(
path
.
indexOf
(
'
/app-
'
)
===
0
||
path
.
indexOf
(
'
/android-
'
)
===
0
||
path
.
indexOf
(
'
/ios-
'
)
===
0
)
{
return
{
if
(
path
.
indexOf
(
'
/app-
'
)
===
0
||
path
.
indexOf
(
'
/android-
'
)
===
0
||
path
.
indexOf
(
'
/ios-
'
)
===
0
)
{
path
:
`/tutorial
${
path
}
`
,
return
{
hash
,
path
:
`/tutorial
${
path
}
`
,
replace
:
true
hash
,
}
replace
:
true
}
}
}
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录