This commit is contained in:
cjd
2025-11-04 21:09:11 +08:00
parent 5313d475c5
commit 8a4843bf46
117 changed files with 15641 additions and 9 deletions

28
vite.config.ts Normal file
View File

@@ -0,0 +1,28 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import vueJsx from '@vitejs/plugin-vue-jsx'
import vueDevTools from 'vite-plugin-vue-devtools'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
vueJsx(),
vueDevTools(),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
proxy: {
'/api': {
target: 'http://localhost:9291', // 请替换为你的后端服务器地址
changeOrigin: true, // 是否改变源
// rewrite: (path) => path.replace(/^\/api/, ''), // 重写路径
},
}
}
})