first commit

This commit is contained in:
2025-12-02 18:21:41 +08:00
commit 19c008a401
21 changed files with 4430 additions and 0 deletions

31
vite.config.js Normal file
View File

@@ -0,0 +1,31 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vite.dev/config/
export default defineConfig({
plugins: [
vue(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
server: {
port: 8080, // 前端启动的端口
proxy: {
'/api': { // 所有以api开头的请求都会被代理
target: 'http://localhost:80',
changeOrigin: true,
}
}
}
})