f
This commit is contained in:
@@ -43,17 +43,19 @@ const router = createRouter({
|
|||||||
path: "promote",
|
path: "promote",
|
||||||
name: "promote",
|
name: "promote",
|
||||||
component: PromotePage,
|
component: PromotePage,
|
||||||
|
meta: { title: "推广中心" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/agent",
|
path: "/agent",
|
||||||
name: "agent",
|
name: "agent",
|
||||||
component: () => import("@/views/Agent.vue"),
|
component: () => import("@/views/Agent.vue"),
|
||||||
meta: { title: "代理主页", requiresAuth: true },
|
meta: { title: "代理中心", requiresAuth: true },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "me",
|
path: "me",
|
||||||
name: "me",
|
name: "me",
|
||||||
component: () => import("@/views/Me/index.vue"),
|
component: () => import("@/views/Me/index.vue"),
|
||||||
|
meta: { title: "个人中心" },
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -388,6 +390,7 @@ const router = createRouter({
|
|||||||
path: "/login",
|
path: "/login",
|
||||||
name: "login",
|
name: "login",
|
||||||
component: () => import("@/views/Login.vue"),
|
component: () => import("@/views/Login.vue"),
|
||||||
|
meta: { title: "登陆注册" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: "/register",
|
path: "/register",
|
||||||
@@ -523,10 +526,10 @@ router.afterEach((to) => {
|
|||||||
// SEO优化:更新页面标题和meta信息
|
// SEO优化:更新页面标题和meta信息
|
||||||
const { updateSEO } = useSEO();
|
const { updateSEO } = useSEO();
|
||||||
|
|
||||||
// 根据路由meta信息更新SEO
|
// 根据路由meta信息更新SEO(页面标题格式:页面名|愉悦查)
|
||||||
if (to.meta.title) {
|
if (to.meta.title) {
|
||||||
const seoConfig = {
|
const seoConfig = {
|
||||||
title: `${to.meta.title} - 愉悦查`,
|
title: `${to.meta.title}|愉悦查`,
|
||||||
description: `愉悦查${to.meta.title}页面,提供专业的大数据风险管控服务。`,
|
description: `愉悦查${to.meta.title}页面,提供专业的大数据风险管控服务。`,
|
||||||
url: `https://www.zhinengcha.cn${to.path}`,
|
url: `https://www.zhinengcha.cn${to.path}`,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const { configWeixinShare } = useWeixinShare();
|
|||||||
const updateExampleWeixinShare = async () => {
|
const updateExampleWeixinShare = async () => {
|
||||||
if (!reportName.value) return;
|
if (!reportName.value) return;
|
||||||
const baseTitle = reportName.value;
|
const baseTitle = reportName.value;
|
||||||
const title = `${baseTitle}(示例报告)`;
|
const title = `${baseTitle}|愉悦查示例报告`;
|
||||||
|
|
||||||
await configWeixinShare({
|
await configWeixinShare({
|
||||||
title,
|
title,
|
||||||
|
|||||||
Reference in New Issue
Block a user