生产环境接口地址修改
This commit is contained in:
parent
c907e27a1d
commit
8100e75429
|
|
@ -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'
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,3 +22,4 @@ dist-ssr
|
||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
*.zip
|
||||||
|
|
|
||||||
BIN
dist (2).zip
BIN
dist (2).zip
Binary file not shown.
BIN
dist (3).zip
BIN
dist (3).zip
Binary file not shown.
BIN
dist (4).zip
BIN
dist (4).zip
Binary file not shown.
|
|
@ -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',
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue