生产环境接口地址修改

This commit is contained in:
zhangqi 2025-09-08 14:41:52 +08:00
parent c907e27a1d
commit 8100e75429
8 changed files with 10 additions and 4 deletions

View File

@ -5,6 +5,6 @@
VITE_APP_ENV='production' VITE_APP_ENV='production'
# api接口请求地址 # api接口请求地址
VITE_APP_BASE_API='http://crm.hzzxq.com/ds' VITE_APP_BASE_API='/rescue'

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ dist-ssr
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
*.zip

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
dist.zip

Binary file not shown.

View File

@ -10,7 +10,6 @@ export const getParam = () => {
// 获取航次列表 // 获取航次列表
export const voyageReg = (data) => { export const voyageReg = (data) => {
console.log(data)
return request({ return request({
baseURL: data.baseURL, baseURL: data.baseURL,
url: '/voyage/reg/list.htm', url: '/voyage/reg/list.htm',

View File

@ -452,9 +452,14 @@ const VoyageSocketUrl = ref('')
const getParamsList = () => { const getParamsList = () => {
getParam().then(res => { getParam().then(res => {
const data = res.array.find(item => item.param_name === 'VoyageSocketUrl') const data = res.array.find(item => item.param_name === 'VoyageSocketUrl')
VoyageSocketUrl.value = data.param_value
getVoyageReg()
if (data.param_value) {
VoyageSocketUrl.value = data.param_value
} else {
VoyageSocketUrl.value = `${window.location.protocol}//${window.location.hostname}:${window.location.port}/ds/`
}
getVoyageReg()
}) })
} }
@ -463,6 +468,7 @@ const voyageOptions = ref([])
const getVoyageReg = () => { const getVoyageReg = () => {
voyageReg({ baseURL: VoyageSocketUrl.value }).then(res => { voyageReg({ baseURL: VoyageSocketUrl.value }).then(res => {
voyageOptions.value = res.array voyageOptions.value = res.array
console.log(res.array)
}) })
} }