|
|
@@ -225,13 +225,20 @@
|
|
|
this.$http.get(`/sso/login/page/style`, {params: {appId: this.appId}})
|
|
|
.then(response => {
|
|
|
if (response.data.success) {
|
|
|
+ console.log(response.data)
|
|
|
let logoUrlStyle = response.data.content.logoUrl
|
|
|
let bgUrl = response.data.content.bgUrl
|
|
|
let bgColor = response.data.content.bgColor
|
|
|
+ let bgLink = response.data.content.bgLink
|
|
|
document.getElementById('navbar-brand').style.backgroundImage = 'url(' + logoUrlStyle + ')'
|
|
|
let bg = document.getElementById('bgStyle')
|
|
|
bg.style.backgroundImage = 'url(' + bgUrl + ')'
|
|
|
bg.style.backgroundColor = bgColor
|
|
|
+ if (bgLink) {
|
|
|
+ bg.onclick = function () {
|
|
|
+ window.location.href = bgLink
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
return Promise.reject(response.data)
|
|
|
}
|