feat(hjc-web): 为登录/注册/找回密码等 7 个页面补 title 标签

这些页面未调用 usePageSeo,SSR 产物里没有 <title>,浏览器标签页显示 URL。

- login / register / forgot-password / change-password / buy / renewal / preview
  统一按 contact.vue 的既有写法:await fetchSiteInfo() 后调 usePageSeo,
  标题自动带上站点品牌后缀
- preview 页仅供内部调试,追加 robots: noindex,nofollow 避免被收录
- cases.vue 是 /cases → /case 的纯重定向壳,无需标题,未改动
This commit is contained in:
2026-09-19 02:05:10 +08:00
parent de412297fb
commit a6b65ae918
7 changed files with 89 additions and 0 deletions
+12
View File
@@ -11,6 +11,18 @@
* 使用空白布局
*/
const { loadTemplate } = useTemplate()
const { siteInfo, fetchSiteInfo } = useSite()
// 先取站点信息,保证标题能带上品牌名(与其它页面一致)
await fetchSiteInfo()
usePageSeo(
{
title: '服务续费',
path: '/renewal'
},
siteInfo.value
)
const pageComponent = shallowRef<Component | null>(null)