From 796d16ac3fab08dbcdcddba4637ed5cc7bf73e19 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Tue, 11 Feb 2025 16:12:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E9=97=AE=E9=A2=98=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.dev | 2 +- src/components/Navmenu/index.vue | 6 ++-- src/http/index.ts | 60 ++++++++++++++++---------------- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/env/.env.dev b/env/.env.dev index 90b71b2..0c8205f 100644 --- a/env/.env.dev +++ b/env/.env.dev @@ -7,7 +7,7 @@ VITE_API_URL = '/proxyApi' # 开发环境接口地址 # 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://36.33.26.201:17788/proxyApi' # 测试服务 # VITE_proxyTarget = 'http://192.168.0.244:28580' # 测试服务 diff --git a/src/components/Navmenu/index.vue b/src/components/Navmenu/index.vue index 76e71a9..b50f63b 100644 --- a/src/components/Navmenu/index.vue +++ b/src/components/Navmenu/index.vue @@ -26,7 +26,7 @@ const navMenuList = computed(() => { // { name: '订单管理', routerName: 'orderManagementCz' }, // { name: '接单管理', routerName: 'accept-orders' }, { name: '公告', routerName: 'enterpriseZone' }, - { name: '数据大屏', routerName: 'big-screen' }, + // { name: '数据大屏', routerName: 'big-screen' }, ] if (isType == 2) return [ @@ -36,7 +36,7 @@ const navMenuList = computed(() => { { name: '订单管理', routerName: 'orderManagement' }, { name: '需求管理', routerName: 'sourcingNeed' }, { name: '通知公告', routerName: 'enterpriseZone' }, - { name: '数据大屏', routerName: 'big-screen' }, + // { name: '数据大屏', routerName: 'big-screen' }, ] if (isType == 3) @@ -45,7 +45,7 @@ const navMenuList = computed(() => { { name: '装备共享大厅', routerName: 'equipList' }, { name: '租赁需求大厅', routerName: 'parity' }, { name: '通知公告', routerName: 'enterpriseZone' }, - { name: '数据大屏', routerName: 'big-screen' }, + // { name: '数据大屏', routerName: 'big-screen' }, ] }) diff --git a/src/http/index.ts b/src/http/index.ts index 3b0a36b..d3be41b 100644 --- a/src/http/index.ts +++ b/src/http/index.ts @@ -101,22 +101,22 @@ service.interceptors.response.use( ) export function get(url: string, params: any) { - if (iwsData) { - service - .get( - `http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`, - ) - .then((res: any) => { - console.log(res, '请求结果') - if (res.code != 200) { - window.location.replace( - 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/', - ) - } + // if (iwsData) { + // service + // .get( + // `http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`, + // ) + // .then((res: any) => { + // console.log(res, '请求结果') + // if (res.code != 200) { + // window.location.replace( + // '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) => { // NProgress.start() service @@ -136,23 +136,23 @@ export function get(url: string, params: any) { }) } export function post(url: string, params: any) { - if (iwsData) { - service - .get( - `http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`, - ) - .then((res: any) => { - console.log(res, '请求结果') + // if (iwsData) { + // service + // .get( + // `http://sgwpdm.ah.sgcc.com.cn/iws/cas/api/validate/sk?sessionKey=${iwsData.sessionKey}`, + // ) + // .then((res: any) => { + // console.log(res, '请求结果') - if (res.code != 200) { - window.location.replace( - 'http://sgwpdm.ah.sgcc.com.cn/iws/cas/login?appId=3874dcb953f184dc75450e33d6d6d4fa&service=http://sgwpdm.ah.sgcc.com.cn/iws/mall-view/', - ) - } + // if (res.code != 200) { + // window.location.replace( + // '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) => { // NProgress.start() service