修改绝对地址
This commit is contained in:
+3
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user