Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
hager
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-12-13 10:26:27 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2cc41502cc721f89845767d9c0ab54c9101b48a1
2cc41502
1 parent
569bb649
fix 修改seo索引路径
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
vite.config.js
vite.config.js
View file @
2cc4150
/*
* @Date: 2024-08-26 10:12:56
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-1
1-04 14:56:26
* @LastEditTime: 2024-1
2-13 10:26:07
* @FilePath: /hager/vite.config.js
* @Description: 文件描述
*/
...
...
@@ -35,12 +35,12 @@ const names = [
'about/product'
,
'about/development'
,
'about/honors'
,
'con
ca
t'
,
'con
tac
t'
,
'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'
}
}
]
...
...
Please
register
or
login
to post a comment