feat(tender): Header 导航加入「标书中心」入口(路径 /tender),解决官网无入口问题

This commit is contained in:
2026-09-09 15:26:42 +08:00
parent 802b73b555
commit 1bba5eb58d
2 changed files with 4 additions and 3 deletions
@@ -151,8 +151,9 @@ function getChildPath(child: CmsNavigation): string {
// 获取站点信息(含导航数据) // 获取站点信息(含导航数据)
await fetchSiteInfo() await fetchSiteInfo()
/** 导航项(使用 useSite 合并 topNavs + bottomNavs 并过滤 top===1 的导航) */ /** 导航项(使用 useSite 合并 topNavs + bottomNavs 并过滤 top===1 的导航;静态前置「标书中心」入口 */
const navItems = computed<CmsNavigation[]>(() => { const navItems = computed<CmsNavigation[]>(() => {
return navigations.value || [] const staticNav: CmsNavigation = { title: '标书中心', path: '/tender' }
return [staticNav, ...(navigations.value || [])]
}) })
</script> </script>
+1 -1
View File
@@ -1,7 +1,7 @@
import { $fetch } from 'ofetch' import { $fetch } from 'ofetch'
import { createError, defineEventHandler, readBody, getHeader, getCookie } from 'h3' import { createError, defineEventHandler, readBody, getHeader, getCookie } from 'h3'
import { useRuntimeConfig } from '#imports' import { useRuntimeConfig } from '#imports'
import { getTenantFromContext } from '../../utils/tenant' import { getTenantFromContext } from '../../../utils/tenant'
/** /**
* 提交/更新企业资质(信息+证件) * 提交/更新企业资质(信息+证件)