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,