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:
jimmyandClaude committed 2025-08-18 08:44:20 +08:00
1 parent 2b18f1106b
commit e2d3ca1c37
1 file changed
+2
+2
View File
@@ -13,6 +13,8 @@ export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd())
return {
// GitHub Pages 部署路径配置
base: mode === 'demo' ? '/NetVizor/' : '/',
plugins: [
vue(),
AutoImport({