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

cms-vue部署到云服务器之后,访问服务端接口地址多出了一个‘/,怎么解决 #508

Open
lrlr opened this issue Sep 28, 2021 · 1 comment

Comments

@lrlr
Copy link

lrlr commented Sep 28, 2021

重现步骤(可选):
http://1.15.154.207:5000/'/cms/user/login,请求地址多出了一个‘/,
这个是打包前要做什么调整吗,本地是没有问题的,就是部署到服务器后请求地址就变成这样了

@vanoneang
Copy link
Member

在 vue.config.js 文件中,配置属性 publicPath 试试,这是 webpack 的一个属性,用法可以搜索一下。

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