使用了AI重构项目,并完善了一部分后台问题

This commit is contained in:
2026-08-05 04:47:11 +08:00
parent 146b6b1e6c
commit ac740c24fd
35 changed files with 2876 additions and 980 deletions
+5 -3
View File
@@ -1,6 +1,8 @@
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
const apiPort = process.env.API_PORT || '1551';
export default defineConfig({
plugins: [vue()],
css: {
@@ -14,13 +16,13 @@ export default defineConfig({
port: 1552,
proxy: {
'/api': {
target: 'http://localhost:1551',
target: `http://localhost:${apiPort}`,
changeOrigin: true,
},
'/uploads': {
target: 'http://localhost:1551',
target: `http://localhost:${apiPort}`,
changeOrigin: true,
},
},
},
});
});