feat(tender): Header 导航加入「标书中心」入口(路径 /tender),解决官网无入口问题
This commit is contained in:
@@ -151,8 +151,9 @@ function getChildPath(child: CmsNavigation): string {
|
||||
// 获取站点信息(含导航数据)
|
||||
await fetchSiteInfo()
|
||||
|
||||
/** 导航项(使用 useSite 合并 topNavs + bottomNavs 并过滤 top===1 的导航) */
|
||||
/** 导航项(使用 useSite 合并 topNavs + bottomNavs 并过滤 top===1 的导航;静态前置「标书中心」入口) */
|
||||
const navItems = computed<CmsNavigation[]>(() => {
|
||||
return navigations.value || []
|
||||
const staticNav: CmsNavigation = { title: '标书中心', path: '/tender' }
|
||||
return [staticNav, ...(navigations.value || [])]
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user