diff --git a/jshERP-web/src/components/layouts/IframePageView.vue b/jshERP-web/src/components/layouts/IframePageView.vue index 2034decd..e0d7c3f3 100644 --- a/jshERP-web/src/components/layouts/IframePageView.vue +++ b/jshERP-web/src/components/layouts/IframePageView.vue @@ -44,8 +44,8 @@ //外部url加入token let token = Vue.ls.get(ACCESS_TOKEN); if(url) { - url = url.replace('/report','') - url = 'http://' + window.location.host + url + url = url.replace('/system','') + url = document.location.protocol + '//' + window.location.host + url } this.url = url + '?token=' + token; }