|
@@ -30,21 +30,21 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
|
|
|
server: {
|
|
|
open: true,
|
|
|
host: '0.0.0.0',
|
|
|
- proxy: {//开发者模式打开 生产模式注释
|
|
|
- '/api': {
|
|
|
- target: 'https://erp.baozhida.cn',
|
|
|
- changeOrigin: true,
|
|
|
- rewrite: path => path.replace(/^\/api/, '/testapi')
|
|
|
- },
|
|
|
- '/testapi': {
|
|
|
- target: 'https://erp.baozhida.cn',
|
|
|
- changeOrigin: true
|
|
|
- },
|
|
|
- '/ams': {
|
|
|
- target: 'http://erp.baozhida.cn',
|
|
|
- changeOrigin: true
|
|
|
- }
|
|
|
- }
|
|
|
+ // proxy: {//开发者模式打开 生产模式注释
|
|
|
+ // '/api': {
|
|
|
+ // target: 'https://erp.baozhida.cn',
|
|
|
+ // changeOrigin: true,
|
|
|
+ // rewrite: path => path.replace(/^\/api/, '/testapi')
|
|
|
+ // },
|
|
|
+ // '/testapi': {
|
|
|
+ // target: 'https://erp.baozhida.cn',
|
|
|
+ // changeOrigin: true
|
|
|
+ // },
|
|
|
+ // '/ams': {
|
|
|
+ // target: 'http://erp.baozhida.cn',
|
|
|
+ // changeOrigin: true
|
|
|
+ // }
|
|
|
+ // }
|
|
|
},
|
|
|
plugins: [
|
|
|
vue(),
|