北斗导航定位通信综合实践赛服务系统

This commit is contained in:
2026-03-27 17:36:15 +08:00
commit 7b9028e883
59 changed files with 11761 additions and 0 deletions

43
vite.config.js Normal file
View File

@@ -0,0 +1,43 @@
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev/config/
export default defineConfig({
publicPath: './',
plugins: [
vue(),
AutoImport({
resolvers: [ElementPlusResolver()],
}),
Components({
resolvers: [ElementPlusResolver()],
}),
],
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
},
server: {
//用来配置跨域
host: '127.0.0.1',
port: 7010,
proxy: {
'/authentication': {
target: 'http://127.0.0.1:8011',//鉴权服务器地址
changeOrigin: true,
rewrite: (path) => path.replace(/^\/authentication/, '')
},
'/bdContest': {
target: 'http://127.0.0.1:8018',//目标服务器地址
changeOrigin: true,
rewrite: (path) => path.replace(/^\/bdContest/, '')
},
}
}
})