From 53a5b893cbdc699e54a92950d42cde43fb686d52 Mon Sep 17 00:00:00 2001 From: jxj_yjl <1490736767@qq.com> Date: Fri, 18 Aug 2023 19:24:28 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=A8=A1=E5=9D=97=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/login_v1.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/home/login_v1.vue b/src/views/home/login_v1.vue index 0981a522..38154a21 100644 --- a/src/views/home/login_v1.vue +++ b/src/views/home/login_v1.vue @@ -420,7 +420,7 @@ export default { onChange1(val) { if (this.oldVal != '') { if (this.oldVal != this.form) { - ;(this.verificateBtn = false), (this.pass = true) + ; (this.verificateBtn = false), (this.pass = true) } } }, @@ -437,7 +437,7 @@ export default { onFail() { this.msg = '验证失败' }, - onRefresh() {}, + onRefresh() { }, getData() { getOneComputerAuthApi().then((res) => { if (res.result) { @@ -446,8 +446,10 @@ export default { } }) }, - getDetail() { - selectSystemLogoConfigApi().then((res) => { + getDetail(val) { + selectSystemLogoConfigApi({ + headquartersSn: val + }).then((res) => { if (res.result) { console.log('查看有没有背景图', res) console.log(window.location.protocol) @@ -492,7 +494,6 @@ export default { }) } else if (LOGINTYPE == 2) { console.log(2222222222222) - companyLoginApi(this.form).then((res) => { this.parseLoginData(res.result) }) @@ -574,6 +575,7 @@ export default { 'Bearer' + ' ' + data.token this.$http.defaults.headers.common['operateId'] = data.userId this.$store.commit('setUserInfo', data) + var moduleList = data.menuAuthority.moduleList ? data.menuAuthority.moduleList : [] @@ -685,6 +687,7 @@ export default { break } } + this.getDetail(this.$store.state.userInfo.headquartersSn) this.selectMp3FileList() } }