Skip to content
本页内容

平台入口

首页

第三方项目若想链接至平台,请默认打开 /#/home/ 地址, 其中 # 为地址分隔符不可缺失。

ts
// 打开平台首页
window.location.href = 'http://0.0.0.0/#/home'
// 打开平台首页
window.location.href = 'http://0.0.0.0/#/home'

打开初始表单

若想在引入平台地址后,设置默认打开表单,则可以通过增加 menuId 来指定。

参数描述是否必须
menuId菜单编号

若导航中某一个节点为

json
{
  "id": 120,
  "name": "收件箱"
}
{
  "id": 120,
  "name": "收件箱"
}

那么若想配置直接打开该节点,则可通过配置路由为,平台布局加载后则会自动打开该导航。

ts
window.location.href = 'http://0.0.0.0/#/home?menuId=120'
window.location.href = 'http://0.0.0.0/#/home?menuId=120'

默认首页

配置的 menuId 导航中不存在时,则平台默认打开构建配置的首页(若已配置)。

Powerd by Vitepress.