修改绝对地址

This commit is contained in:
董海洋
2026-06-01 17:26:14 +08:00
parent dfe937ccfb
commit f63736fba6
3 changed files with 173 additions and 1 deletions
+3 -1
View File
@@ -4,8 +4,10 @@ import { resolve } from 'path'
export default defineConfig({
// host: '0.0.0.0',
// port: 8000,
base: '/ui/',
publicPath: '/ui/',
scripts: [
`if (location.pathname === '/' || location.pathname === '') { location.replace('/guide/introduce'); }`,
`if (location.pathname === '/ui/' || location.pathname === '/ui') { location.replace('/ui/guide/introduce'); }`,
],
themeConfig: {
name: 'RustUI',