系统设置登录模块区分

This commit is contained in:
jxj_yjl 2023-08-18 19:24:28 +08:00
parent f1ea06327d
commit 53a5b893cb

View File

@ -446,8 +446,10 @@ export default {
} }
}) })
}, },
getDetail() { getDetail(val) {
selectSystemLogoConfigApi().then((res) => { selectSystemLogoConfigApi({
headquartersSn: val
}).then((res) => {
if (res.result) { if (res.result) {
console.log('查看有没有背景图', res) console.log('查看有没有背景图', res)
console.log(window.location.protocol) console.log(window.location.protocol)
@ -492,7 +494,6 @@ export default {
}) })
} else if (LOGINTYPE == 2) { } else if (LOGINTYPE == 2) {
console.log(2222222222222) console.log(2222222222222)
companyLoginApi(this.form).then((res) => { companyLoginApi(this.form).then((res) => {
this.parseLoginData(res.result) this.parseLoginData(res.result)
}) })
@ -574,6 +575,7 @@ export default {
'Bearer' + ' ' + data.token 'Bearer' + ' ' + data.token
this.$http.defaults.headers.common['operateId'] = data.userId this.$http.defaults.headers.common['operateId'] = data.userId
this.$store.commit('setUserInfo', data) this.$store.commit('setUserInfo', data)
var moduleList = data.menuAuthority.moduleList var moduleList = data.menuAuthority.moduleList
? data.menuAuthority.moduleList ? data.menuAuthority.moduleList
: [] : []
@ -685,6 +687,7 @@ export default {
break break
} }
} }
this.getDetail(this.$store.state.userInfo.headquartersSn)
this.selectMp3FileList() this.selectMp3FileList()
} }
} }