页面部分实现

This commit is contained in:
YueL1331
2026-01-06 15:27:10 +08:00
parent 1f85bbbc2e
commit 776559b6eb
24 changed files with 3282 additions and 0 deletions

View File

@ -0,0 +1,16 @@
// vite.config.js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:5000', // 必须指向你的 Flask 地址
changeOrigin: true,
rewrite: (path) => path // 保持路径 /api 不变
}
}
}
})