12345678910111213141516171819202122232425262728293031 |
- const { defineConfig } = require('@vue/cli-service')
- module.exports = defineConfig({
- transpileDependencies: true,
- devServer: {
- port: 8080,
- proxy: {
- '/proxy_proxy/': {
- // 121 环境
- // target: 'http://121.43.55.7:10011/proxy',
- // 政务网 环境
- target: 'http://10.235.245.174:10011/proxy',
- changeOrigin: true,
- secure: false,
- pathRewrite: {
- '^/proxy_proxy': ''
- }
- },
- '/oauth/': {
- // 121 环境
- // target: 'http://121.43.55.7:10086/oauth',
- // 政务网 环境
- target: 'http://10.235.245.174:10086/oauth',
- changeOrigin: true,
- pathRewrite: {
- '^/oauth': ''
- }
- },
- }
- }
- })
|