关于路由标题想设置为空的疑问
yyqxjwxy opened this issue · 2 comments
{
name: 'risk-detail',
path: '/risk-detail/:id',
component: 'layout.blank$view.risk-detail',
props: true,
meta: {
title: 'risk-detail'
}
}
我生成的这个路由我想把 mete 中的 title 设置为空,但是总是自动生成 risk-detail
onRouteMetaGen: (routeName: string) => ({
title: routeName === 'risk-detail' ? '' : routeName,
})
我在 vite-config写成这样也不行是为什么呢
路由声明的代码是非覆盖生成,所以,你先把代码里面的 title: 'risk-detail' 去掉,再重新启动就行 获取 Outlook for iOShttps://aka.ms/o0ukef
…
________________________________ 发件人: wang xiao yu @.> 发送时间: Tuesday, May 21, 2024 2:05:57 PM 收件人: soybeanjs/elegant-router @.> 抄送: Subscribed @.> 主题: [soybeanjs/elegant-router] 关于路由标题想设置为空的疑问 (Issue #20) { name: 'risk-detail', path: '/risk-detail/:id', component: 'layout.blank$view.risk-detail', props: true, meta: { title: 'risk-detail' } } 我生成的这个路由我想把 mete 中的 title 设置为空,但是总是自动生成 risk-detail onRouteMetaGen: (routeName: string) => ({ title: routeName === 'risk-detail' ? '' : routeName, }) 我在 vite-config写成这样也不行是为什么呢 ― Reply to this email directly, view it on GitHub<#20>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AL3G4YO5RZRZD43J6REARR3ZDLP4LAVCNFSM6AAAAABIA5WGEKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDOMZZGE2TOOA. You are receiving this because you are subscribed to this thread.Message ID: @.>
多谢多谢