fix: 修复 GitHub Pages 路径问题
- 添加 base 路径配置,演示模式使用 '/NetVizor/' - 修复静态资源 404 错误 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
2b18f1106b
commit
e2d3ca1c37
1 file changed
+2
@@ -13,6 +13,8 @@ export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd())
|
||||
|
||||
return {
|
||||
// GitHub Pages 部署路径配置
|
||||
base: mode === 'demo' ? '/NetVizor/' : '/',
|
||||
plugins: [
|
||||
vue(),
|
||||
AutoImport({
|
||||
|
||||
Reference in new issue
Block a user