From 9f816354a296dd8a2638acfe0fbf7f7b70cee470 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 12 Jul 2024 10:18:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B5=8C=E5=85=A5ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/http.js | 3 +- src/config/index.js | 7 ++-- src/views/Home.vue | 95 +++++++++++++++++++++++++++++---------------- 3 files changed, 66 insertions(+), 39 deletions(-) diff --git a/src/api/http.js b/src/api/http.js index feedc32..7ed4e28 100644 --- a/src/api/http.js +++ b/src/api/http.js @@ -5,6 +5,7 @@ import { import router from '../router/index' import Cookie from 'js-cookie' import config from '@/config' +import Util from '@/util' const service = axios.create({ baseURL: config.host, @@ -42,7 +43,7 @@ service.interceptors.response.use( if (!logouted) { Message.error(res.msg.includes('顶') ? '您的账号已在其他设备登录,您已被迫下线!' : '登录过期,请重新登录!') setTimeout(() => { - history.back() + Util.exit() }, 1500) logouted = 1 } diff --git a/src/config/index.js b/src/config/index.js index 6684696..ebc465e 100644 --- a/src/config/index.js +++ b/src/config/index.js @@ -2,8 +2,7 @@ import Cookie from 'js-cookie' const url = location.host const isDev = process.env.NODE_ENV === 'development' //是否本地 -// const isTest = url.includes('121.37.12.51') //测试服 -const isTest = true //测试服 +const isTest = url.includes('121.37.12.51') //测试服 const isHh = url.includes('10.196.131.73') //是否是河海版本 const isPro = url.includes('occupationlab.com') //是否职站生产 const isZxy = url.includes('izhixinyun.com') //是否智信云 @@ -14,8 +13,8 @@ let host = location.origin + '/' let bankPath = `${location.origin}/banksystem` // 银行系统 // 121.37.12.51 | 192.168.31.151 if (isDev) { - host = 'http://192.168.31.51:9000/' - // host = 'http://121.37.12.51:9000/' + host = 'http://192.168.31.217:9000/' + host = 'http://121.37.12.51:9000/' // host = 'https://occupationlab.com/' bankPath = `http://${location.hostname}:8093` } else if (isPro) { diff --git a/src/views/Home.vue b/src/views/Home.vue index 78ff798..bee3edd 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -3,9 +3,13 @@

{{ curriculumName }}

+

账号:{{ account }};密码:112233aa

退出实验
-