Commit 1ca585c7 authored by 季圣华's avatar 季圣华
Browse files

报表地址优化

parent a692f2bb
...@@ -43,6 +43,10 @@ ...@@ -43,6 +43,10 @@
if (url !== null && url !== undefined) { if (url !== null && url !== undefined) {
//外部url加入token //外部url加入token
let token = Vue.ls.get(ACCESS_TOKEN); let token = Vue.ls.get(ACCESS_TOKEN);
if(url) {
url = url.replace('/report','')
url = 'http://' + window.location.host + url
}
this.url = url + '?token=' + token; this.url = url + '?token=' + token;
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment