hookehuyr

fix 修改seo索引路径

/*
* @Date: 2024-08-26 10:12:56
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-04 14:56:26
* @LastEditTime: 2024-12-13 10:26:07
* @FilePath: /hager/vite.config.js
* @Description: 文件描述
*/
......@@ -35,12 +35,12 @@ const names = [
'about/product',
'about/development',
'about/honors',
'concat',
'contact',
'news',
'news/detail',
'recruit',
]
const dynamicRoutes = names.map(name => `/f/hager/#/${name}`)
const dynamicRoutes = names.map(name => `${name}`)
// https://vitejs.dev/config/
export default ({ command, mode }) => {
......@@ -97,7 +97,7 @@ return defineConfig({
minify: false,
inject: {
data: {
sitemapUrl: '/f/hager/sitemap.xml'
sitemapUrl: 'sitemap.xml'
},
tags: [
{
......@@ -106,7 +106,7 @@ return defineConfig({
rel: 'sitemap',
type: 'application/xml',
title: 'Sitemap',
href: '/f/hager/sitemap.xml'
href: 'sitemap.xml'
}
}
]
......