Showing
1 changed file
with
5 additions
and
5 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2024-08-26 10:12:56 | 2 | * @Date: 2024-08-26 10:12:56 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-11-04 14:56:26 | 4 | + * @LastEditTime: 2024-12-13 10:26:07 |
| 5 | * @FilePath: /hager/vite.config.js | 5 | * @FilePath: /hager/vite.config.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -35,12 +35,12 @@ const names = [ | ... | @@ -35,12 +35,12 @@ const names = [ |
| 35 | 'about/product', | 35 | 'about/product', |
| 36 | 'about/development', | 36 | 'about/development', |
| 37 | 'about/honors', | 37 | 'about/honors', |
| 38 | - 'concat', | 38 | + 'contact', |
| 39 | 'news', | 39 | 'news', |
| 40 | 'news/detail', | 40 | 'news/detail', |
| 41 | 'recruit', | 41 | 'recruit', |
| 42 | ] | 42 | ] |
| 43 | -const dynamicRoutes = names.map(name => `/f/hager/#/${name}`) | 43 | +const dynamicRoutes = names.map(name => `${name}`) |
| 44 | 44 | ||
| 45 | // https://vitejs.dev/config/ | 45 | // https://vitejs.dev/config/ |
| 46 | export default ({ command, mode }) => { | 46 | export default ({ command, mode }) => { |
| ... | @@ -97,7 +97,7 @@ return defineConfig({ | ... | @@ -97,7 +97,7 @@ return defineConfig({ |
| 97 | minify: false, | 97 | minify: false, |
| 98 | inject: { | 98 | inject: { |
| 99 | data: { | 99 | data: { |
| 100 | - sitemapUrl: '/f/hager/sitemap.xml' | 100 | + sitemapUrl: 'sitemap.xml' |
| 101 | }, | 101 | }, |
| 102 | tags: [ | 102 | tags: [ |
| 103 | { | 103 | { |
| ... | @@ -106,7 +106,7 @@ return defineConfig({ | ... | @@ -106,7 +106,7 @@ return defineConfig({ |
| 106 | rel: 'sitemap', | 106 | rel: 'sitemap', |
| 107 | type: 'application/xml', | 107 | type: 'application/xml', |
| 108 | title: 'Sitemap', | 108 | title: 'Sitemap', |
| 109 | - href: '/f/hager/sitemap.xml' | 109 | + href: 'sitemap.xml' |
| 110 | } | 110 | } |
| 111 | } | 111 | } |
| 112 | ] | 112 | ] | ... | ... |
-
Please register or login to post a comment