部署问题修复
This commit is contained in:
parent
9fdbdd6ff9
commit
796d16ac3f
|
|
@ -7,7 +7,7 @@ VITE_API_URL = '/proxyApi'
|
||||||
# 开发环境接口地址
|
# 开发环境接口地址
|
||||||
# VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
|
# VITE_proxyTarget = 'http://10.40.92.74:8080' #盛旭
|
||||||
|
|
||||||
# VITE_proxyTarget = 'http://192.168.2.246:28080' # 马帅
|
# VITE_proxyTarget = 'http://192.168.2.223:28080' # 马帅
|
||||||
# VITE_proxyTarget = 'http://192.168.2.122:28080' # 梁超
|
# VITE_proxyTarget = 'http://192.168.2.122:28080' # 梁超
|
||||||
VITE_proxyTarget = 'http://36.33.26.201:17788/proxyApi' # 测试服务
|
VITE_proxyTarget = 'http://36.33.26.201:17788/proxyApi' # 测试服务
|
||||||
# VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
|
# VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const navMenuList = computed(() => {
|
||||||
// { name: '订单管理', routerName: 'orderManagementCz' },
|
// { name: '订单管理', routerName: 'orderManagementCz' },
|
||||||
// { name: '接单管理', routerName: 'accept-orders' },
|
// { name: '接单管理', routerName: 'accept-orders' },
|
||||||
{ name: '公告', routerName: 'enterpriseZone' },
|
{ name: '公告', routerName: 'enterpriseZone' },
|
||||||
{ name: '数据大屏', routerName: 'big-screen' },
|
// { name: '数据大屏', routerName: 'big-screen' },
|
||||||
]
|
]
|
||||||
if (isType == 2)
|
if (isType == 2)
|
||||||
return [
|
return [
|
||||||
|
|
@ -36,7 +36,7 @@ const navMenuList = computed(() => {
|
||||||
{ name: '订单管理', routerName: 'orderManagement' },
|
{ name: '订单管理', routerName: 'orderManagement' },
|
||||||
{ name: '需求管理', routerName: 'sourcingNeed' },
|
{ name: '需求管理', routerName: 'sourcingNeed' },
|
||||||
{ name: '通知公告', routerName: 'enterpriseZone' },
|
{ name: '通知公告', routerName: 'enterpriseZone' },
|
||||||
{ name: '数据大屏', routerName: 'big-screen' },
|
// { name: '数据大屏', routerName: 'big-screen' },
|
||||||
]
|
]
|
||||||
|
|
||||||
if (isType == 3)
|
if (isType == 3)
|
||||||
|
|
@ -45,7 +45,7 @@ const navMenuList = computed(() => {
|
||||||
{ name: '装备共享大厅', routerName: 'equipList' },
|
{ name: '装备共享大厅', routerName: 'equipList' },
|
||||||
{ name: '租赁需求大厅', routerName: 'parity' },
|
{ name: '租赁需求大厅', routerName: 'parity' },
|
||||||
{ name: '通知公告', routerName: 'enterpriseZone' },
|
{ name: '通知公告', routerName: 'enterpriseZone' },
|
||||||
{ name: '数据大屏', routerName: 'big-screen' },
|
// { name: '数据大屏', routerName: 'big-screen' },
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -101,22 +101,22 @@ service.interceptors.response.use(
|
||||||
)
|
)
|
||||||
|
|
||||||
export function get(url: string, params: any) {
|
export function get(url: string, params: any) {
|
||||||
if (iwsData) {
|
// if (iwsData) {
|
||||||
service
|
// service
|
||||||
.get(
|
// .get(
|
||||||
`http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`,
|
// `http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`,
|
||||||
)
|
// )
|
||||||
.then((res: any) => {
|
// .then((res: any) => {
|
||||||
console.log(res, '请求结果')
|
// console.log(res, '请求结果')
|
||||||
if (res.code != 200) {
|
// if (res.code != 200) {
|
||||||
window.location.replace(
|
// window.location.replace(
|
||||||
'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/',
|
// 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/',
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
|
|
||||||
return false
|
// return false
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// NProgress.start()
|
// NProgress.start()
|
||||||
service
|
service
|
||||||
|
|
@ -136,23 +136,23 @@ export function get(url: string, params: any) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
export function post(url: string, params: any) {
|
export function post(url: string, params: any) {
|
||||||
if (iwsData) {
|
// if (iwsData) {
|
||||||
service
|
// service
|
||||||
.get(
|
// .get(
|
||||||
`http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`,
|
// `http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`,
|
||||||
)
|
// )
|
||||||
.then((res: any) => {
|
// .then((res: any) => {
|
||||||
console.log(res, '请求结果')
|
// console.log(res, '请求结果')
|
||||||
|
|
||||||
if (res.code != 200) {
|
// if (res.code != 200) {
|
||||||
window.location.replace(
|
// window.location.replace(
|
||||||
'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/',
|
// 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/',
|
||||||
)
|
// )
|
||||||
}
|
// }
|
||||||
|
|
||||||
return false
|
// return false
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
// NProgress.start()
|
// NProgress.start()
|
||||||
service
|
service
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue