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() } }