We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如何自定义api请求的接口地址域名,项目启动默认是localhost:4000, 但是后端服务监听8080端口提供api接口,目前配置一个api:/a/b,完整请求地址:http://127.0.0.1:4000/a/b,如何调整成http://127.0.0.1:8080/a/b
The text was updated successfully, but these errors were encountered:
可以配置代理。在vite.config.js文件里添加配置 proxy: { "/admin": { target: env.VITE_API_URL, // target: "http://127.0.0.1:8050/", changeOrigin: true, rewrite: (path) => path, }, }
Sorry, something went wrong.
No branches or pull requests
如何自定义api请求的接口地址域名,项目启动默认是localhost:4000, 但是后端服务监听8080端口提供api接口,目前配置一个api:/a/b,完整请求地址:http://127.0.0.1:4000/a/b,如何调整成http://127.0.0.1:8080/a/b
The text was updated successfully, but these errors were encountered: