最新修改,初版

This commit is contained in:
2026-02-25 09:38:25 +08:00
parent 1f5bfba3b3
commit 0378198f55
15 changed files with 1691 additions and 824 deletions

View File

@@ -6,6 +6,7 @@ import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
base: '/', // 添加这一行,确保部署在根目录或通过Nginx运行目录指向时路径正确
plugins: [
vue(),
vueDevTools(),
@@ -16,10 +17,10 @@ export default defineConfig({
},
},
server: {
port: 8080, // 前端启动的端口
port: 80, // 前端启动的端口
proxy: {
'/api': { // 所有以api开头的请求都会被代理
target: 'http://localhost:80',
target: 'http://112.5.15.136:25536',
changeOrigin: true,
}
}