From 4e3fa2098455f22da5cf4a71a352dafbf8866bb1 Mon Sep 17 00:00:00 2001 From: guoyue Date: Mon, 26 Sep 2022 15:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=BB=98=E8=AE=A4=20=E8=B7=B3=E8=BD=AC=E5=88=B0?= =?UTF-8?q?=E8=83=BD=E5=8A=9B=E9=9B=86=E5=B8=82-=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E8=AE=BE=E6=96=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/login/index.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/front/src/views/login/index.vue b/front/src/views/login/index.vue index 7e481975..cd9cc7f8 100644 --- a/front/src/views/login/index.vue +++ b/front/src/views/login/index.vue @@ -42,6 +42,9 @@ import { Encrypt } from '@/utils/crypto' import { UserOutlined, LockOutlined } from '@ant-design/icons-vue' import { message, Modal } from 'ant-design-vue' +// 是否是西海岸 +const isXiHaiAn = whoShow.itShowXiHaiAn + export default { name: 'Login', components: { @@ -145,7 +148,19 @@ export default { window.sessionStorage.setItem('visits', JSON.stringify([])) console.log('添加visits========================================>') // console.log(this.handleRoute()) - await this.$router.push('/home') + // 西海岸特殊处理 + if (isXiHaiAn) { + await this.$router.push({ + path: '/DetailsPageconetent', + query: { + select: '基础设施', + tecHnosphere: '', + appLiCation: '' + } + }) + } else { + await this.$router.push('/home') + } } catch (error) { message.error('登陆失败,用户名或密码错误!') }