Skip to content

Commit 2d8081a

Browse files
author
yinquan
committed
change the base path in vite.doc.config.js
1 parent 0b2fb73 commit 2d8081a

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

docs/assets/index-12d1eb18.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<link rel="icon" href="/favicon.ico" />
5+
<link rel="icon" href="./favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>vue tree</title>
8-
<script type="module" crossorigin src="/assets/index-b0343574.js"></script>
9-
<link rel="stylesheet" href="/assets/index-768878f8.css">
8+
<script type="module" crossorigin src="./assets/index-12d1eb18.js"></script>
9+
<link rel="stylesheet" href="./assets/index-768878f8.css">
1010
</head>
1111
<body>
1212
<div id="app"></div>

vite.docs.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import vue from '@vitejs/plugin-vue'
66
*/
77
export default {
88
root: 'example',
9-
base: '/',
9+
base: './',
1010
ssr: false,
1111

1212
plugins: [vue()],

0 commit comments

Comments
 (0)