This commit is contained in:
2026-03-09 13:50:16 +08:00
parent 3bc96be89b
commit e23c6158da
2 changed files with 7 additions and 4 deletions

View File

@@ -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}`,
};

View File

@@ -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,