From e23c6158da1a8a94bc410f96d5cf37e61970544b Mon Sep 17 00:00:00 2001 From: liangzai <2440983361@qq.com> Date: Mon, 9 Mar 2026 13:50:16 +0800 Subject: [PATCH] f --- src/router/index.js | 9 ++++++--- src/views/Example.vue | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 54dec45..28cdcdc 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -43,17 +43,19 @@ const router = createRouter({ path: "promote", name: "promote", component: PromotePage, + meta: { title: "推广中心" }, }, { path: "/agent", name: "agent", component: () => import("@/views/Agent.vue"), - meta: { title: "代理主页", requiresAuth: true }, + meta: { title: "代理中心", requiresAuth: true }, }, { path: "me", name: "me", component: () => import("@/views/Me/index.vue"), + meta: { title: "个人中心" }, }, ], }, @@ -388,6 +390,7 @@ const router = createRouter({ path: "/login", name: "login", component: () => import("@/views/Login.vue"), + meta: { title: "登陆注册" }, }, { path: "/register", @@ -523,10 +526,10 @@ router.afterEach((to) => { // SEO优化:更新页面标题和meta信息 const { updateSEO } = useSEO(); - // 根据路由meta信息更新SEO + // 根据路由meta信息更新SEO(页面标题格式:页面名|愉悦查) if (to.meta.title) { const seoConfig = { - title: `${to.meta.title} - 愉悦查`, + title: `${to.meta.title}|愉悦查`, description: `愉悦查${to.meta.title}页面,提供专业的大数据风险管控服务。`, url: `https://www.zhinengcha.cn${to.path}`, }; diff --git a/src/views/Example.vue b/src/views/Example.vue index 8647bdb..f5c1835 100644 --- a/src/views/Example.vue +++ b/src/views/Example.vue @@ -26,7 +26,7 @@ const { configWeixinShare } = useWeixinShare(); const updateExampleWeixinShare = async () => { if (!reportName.value) return; const baseTitle = reportName.value; - const title = `${baseTitle}(示例报告)`; + const title = `${baseTitle}|愉悦查示例报告`; await configWeixinShare({ title,