报表地址优化

This commit is contained in:
季圣华
2021-11-07 23:29:18 +08:00
parent 1ca585c7ec
commit 744691d916

View File

@@ -44,8 +44,8 @@
//外部url加入token //外部url加入token
let token = Vue.ls.get(ACCESS_TOKEN); let token = Vue.ls.get(ACCESS_TOKEN);
if(url) { if(url) {
url = url.replace('/report','') url = url.replace('/system','')
url = 'http://' + window.location.host + url url = document.location.protocol + '//' + window.location.host + url
} }
this.url = url + '?token=' + token; this.url = url + '?token=' + token;
} }