Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎样去掉ajax请求时的/api 前缀 #27

Closed
quqiufeng opened this issue Jun 3, 2019 · 3 comments
Closed

怎样去掉ajax请求时的/api 前缀 #27

quqiufeng opened this issue Jun 3, 2019 · 3 comments

Comments

@quqiufeng
Copy link

devServer: { proxy: { '/api/': { target: 'http://admin5.test.com/' }, changeOrigin: true, pathRewrite: { '/api': '/' } }, historyApiFallback: true },
pathRewrite 无效

@vvpvvp
Copy link
Member

vvpvvp commented Jun 3, 2019

@vvpvvp vvpvvp closed this as completed Jun 3, 2019
@quqiufeng
Copy link
Author

可以不用这个么
后端是php

@vvpvvp
Copy link
Member

vvpvvp commented Jun 4, 2019

这个和后端使用什么技术没有关系的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants