同步现场代码
This commit is contained in:
@@ -9,11 +9,14 @@ import path from 'path'
|
||||
const nodeResolve = (dir: string): any => path.resolve(__dirname, '.', dir)
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [vue(), svgBuilder('./src/assets/icons/'), vueJsx(),
|
||||
plugins: [
|
||||
vue(),
|
||||
svgBuilder('./src/assets/icons/'),
|
||||
vueJsx(),
|
||||
AutoImport({
|
||||
//自动引入
|
||||
imports: ["vue", "vue-router","pinia"],
|
||||
}),
|
||||
imports: ['vue', 'vue-router', 'pinia']
|
||||
})
|
||||
],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
@@ -21,12 +24,17 @@ export default defineConfig({
|
||||
proxy: {
|
||||
'/api': {
|
||||
// target: 'http://10.95.53.49:10215', //海南服务器ip
|
||||
target: 'http://192.168.1.125:10215', //hsw
|
||||
// target: 'http://192.168.1.81:10215', //数据中心
|
||||
// target: 'http://192.168.1.130:10215',
|
||||
target: 'http://10.118.135.128:10215', ///hsw
|
||||
// target: 'http://10.119.65.152:10215', //数据中心
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api/, '') //路径重写,把'/api'替换为''
|
||||
},
|
||||
'/api-docx': {
|
||||
// 文件服务器地址
|
||||
target: 'http://10.118.135.128:9009',
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/api-docx/, '')
|
||||
},
|
||||
'/map': {
|
||||
// target: 'http://10.95.53.49:8088', //海南服务器ip
|
||||
target: 'http://192.168.1.125:8088', //hsw
|
||||
|
||||
Reference in New Issue
Block a user