增加Workerman代理转发配置
Some checks failed
Release pipeline / publish (push) Has been cancelled
Release pipeline / Always run job (push) Has been cancelled

This commit is contained in:
sheng
2026-06-25 12:38:34 +08:00
parent 5001bf81b1
commit d49648a814
5 changed files with 12 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ import axios from 'axios'
import { Message } from 'element-ui'
const WORKERMAN_URL = process.env.VUE_APP_WORKERMAN_URL || 'http://127.0.0.1:34351'
const WORKERMAN_API = process.env.VUE_APP_WORKERMAN_API || WORKERMAN_URL
const workerman = axios.create({
timeout: 10000,
@@ -35,7 +36,7 @@ function buildRequestErrorMessage (error) {
}
export function sendWorkerman (data) {
return workerman.post(WORKERMAN_URL, normalizePayload(data)).then(response => {
return workerman.post(WORKERMAN_API, normalizePayload(data)).then(response => {
const result = response.data
const businessError = readBusinessError(result)
if (businessError) {