This commit is contained in:
2025-03-21 21:42:33 +08:00
commit 2c1f20572e
33 changed files with 5271 additions and 0 deletions

30
vite.config.js Normal file
View File

@@ -0,0 +1,30 @@
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: {
host: '0.0.0.0',
port: 5173,
strictPort: true,
proxy: {
'/api': {
target: 'http://localhost:8101',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})