chore: sync local updates

This commit is contained in:
2026-05-16 19:03:44 +08:00
parent de9fd187e6
commit d49287704b
227 changed files with 16044 additions and 12171 deletions

View File

@@ -63,14 +63,14 @@ export default defineConfig({
devOptions: { enabled: true } // 开发时也启用 PWA 便于调试
})
],
base: './', // Ensure relative paths for assets
base: '/', // 使用绝对路径,确保 SPA 路由(/note/...)下资源加载正确
server: {
host: '0.0.0.0', // 监听所有网络接口(包括局域网)
port: 5173, // 端口号可选默认5173
proxy: {
// 开发环境代理配置
// 开发:将 /api 转到本机 FastAPI默认 uvicorn 端口 8000与 mengyanote-backend 一致)
'/api': {
target: 'http://192.168.1.233:2424',
target: 'http://127.0.0.1:8000',
changeOrigin: true,
}
}
@@ -79,9 +79,9 @@ export default defineConfig({
host: '0.0.0.0',
port: 4173,
proxy: {
// 预览环境代理配置(npm run preview
// npm run preview:同上,本地联调后端
'/api': {
target: 'http://192.168.1.233:2424',
target: 'http://127.0.0.1:8000',
changeOrigin: true,
}
}