Commit b4b8e5fd by ZhengJie

[代码完善](v2.6): 适配Nginx反向代理部署,部署文档后续更新

parent 1cd3b3b6
ENV = 'production'
# 如果使用 Nginx 代理后端接口,那么此处需要改为 '/',后续文档更新 Nginx 反向部署教程
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
VUE_APP_BASE_API = 'https://api.auauz.net'
# 如果接口是 http 形式, wss 需要改为 ws
......
const baseUrl = process.env.VUE_APP_BASE_API
// 适配 Nginx 反向代理
const baseUrl = process.env.VUE_APP_BASE_API === '/' ? '' : process.env.VUE_APP_BASE_API
const api = {
state: {
// 部署包上传
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment