初始化项目结构

This commit is contained in:
2025-12-03 12:56:57 +08:00
commit 320673dd34
51 changed files with 5361 additions and 0 deletions

28
vite.config.ts Normal file
View File

@@ -0,0 +1,28 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve } from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
},
},
server: {
port: 3000,
proxy: {
'/api': {
target: 'http://localhost:12080',
changeOrigin: true,
},
'/ws': {
target: 'ws://localhost:12080',
ws: true,
changeOrigin: true,
},
},
},
})