生产环境接口地址修改
This commit is contained in:
parent
c907e27a1d
commit
8100e75429
|
|
@ -5,6 +5,6 @@
|
|||
VITE_APP_ENV='production'
|
||||
|
||||
# api接口请求地址
|
||||
VITE_APP_BASE_API='http://crm.hzzxq.com/ds'
|
||||
VITE_APP_BASE_API='/rescue'
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -22,3 +22,4 @@ dist-ssr
|
|||
*.njsproj
|
||||
*.sln
|
||||
*.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) => {
|
||||
console.log(data)
|
||||
return request({
|
||||
baseURL: data.baseURL,
|
||||
url: '/voyage/reg/list.htm',
|
||||
|
|
|
|||
|
|
@ -452,9 +452,14 @@ const VoyageSocketUrl = ref('')
|
|||
const getParamsList = () => {
|
||||
getParam().then(res => {
|
||||
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 = () => {
|
||||
voyageReg({ baseURL: VoyageSocketUrl.value }).then(res => {
|
||||
voyageOptions.value = res.array
|
||||
console.log(res.array)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue