首次提交

This commit is contained in:
2025-10-10 17:27:55 +08:00
commit c575e75c77
39 changed files with 15475 additions and 0 deletions

58
vite.config.js Normal file
View File

@@ -0,0 +1,58 @@
import {defineConfig} from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'
import svgLoader from "vite-svg-loader";
// https://vitejs.dev/config/
export default defineConfig({
// base: '/admin',
base: '/',
plugins: [vue(),svgLoader()],
resolve: {
alias: {
'@': resolve(__dirname, 'src')
}
},
server: {
port: 5174,
host: '0.0.0.0',
proxy: {
'/api': {
target: 'http://192.168.0.12:3008',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
},
// '/admin': {
// target: 'http://192.168.0.12:3000',
// changeOrigin: true
// },
'/mid': {
target: 'http://192.168.0.4:3005',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/mid/, '')
},
'/program': {
target: 'http://192.168.0.12:3005/term',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/program/, '')
},
'/uploads': {
target: 'https://test.zrbjr.com',
changeOrigin: true
}
}
},
build: {
outDir: 'dist',
assetsDir: 'assets',
rollupOptions: {
output: {
manualChunks: {
vendor: ['vue', 'vue-router', 'pinia'],
elementPlus: ['element-plus'],
charts: ['echarts', 'vue-echarts']
}
}
}
}
})