回退设置
This commit is contained in:
parent
63288736d4
commit
b600458b7a
@ -117,7 +117,7 @@ export default {
|
|||||||
proxy: [ //proxy配置
|
proxy: [ //proxy配置
|
||||||
['/api', {
|
['/api', {
|
||||||
target: apiConfig.BASE, //api请求路径
|
target: apiConfig.BASE, //api请求路径
|
||||||
pathRewrite: {'^/api': isDevMode ? '/api' : '/api'} //重定向请求路径,防止路由、api路径的冲突
|
pathRewrite: {'^/api': isDevMode ? '/api/v1' : '/api'} //重定向请求路径,防止路由、api路径的冲突
|
||||||
}],
|
}],
|
||||||
['/ws', {
|
['/ws', {
|
||||||
target: apiConfig.BASE //api请求路径
|
target: apiConfig.BASE //api请求路径
|
||||||
|
Loading…
Reference in New Issue
Block a user