|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
* @Author: ch
|
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
|
* @LastEditors: ch
|
|
|
|
|
* @LastEditTime: 2022-07-07 17:31:39
|
|
|
|
|
* @LastEditTime: 2022-07-15 11:39:08
|
|
|
|
|
* @Description: file content
|
|
|
|
|
*/
|
|
|
|
|
export default {
|
|
|
|
@ -79,19 +79,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
axios: {
|
|
|
|
|
// 表示开启代理
|
|
|
|
|
proxy: true,
|
|
|
|
|
// proxy: true,
|
|
|
|
|
},
|
|
|
|
|
proxy: {
|
|
|
|
|
'/mall/': {
|
|
|
|
|
target: 'https://you-gateway.mashibing.com/', // 目标接口域名
|
|
|
|
|
// target: 'https://k8s-horse-gateway.mashibing.cn/', // 目标接口域名
|
|
|
|
|
pathRewrite: {
|
|
|
|
|
changeOrigin: true, // 表示是否跨域
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
// '/mall/': {
|
|
|
|
|
// target: 'https://you-gateway.mashibing.com/', // 目标接口域名
|
|
|
|
|
// // target: 'https://k8s-horse-gateway.mashibing.cn/', // 目标接口域名
|
|
|
|
|
// pathRewrite: {
|
|
|
|
|
// changeOrigin: true, // 表示是否跨域
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
port: 3000, // default: 3000
|
|
|
|
|
host: '0.0.0.0' // default: localhost,
|
|
|
|
|
port: 3000,
|
|
|
|
|
host: '0.0.0.0'
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|