From fe22454311d2de11e2f69240d31918354f9ef523 Mon Sep 17 00:00:00 2001 From: daihh Date: Sun, 16 Oct 2022 17:54:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=99=BB=E5=BD=95=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=EF=BC=8Curl=E8=BF=9B=E8=A1=8C=E7=BC=96=E7=A0=81=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/security.js | 4 ++-- src/views/portal/boeframe.vue | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/security.js b/src/security.js index 78ff4c80..4abfcb01 100644 --- a/src/security.js +++ b/src/security.js @@ -70,8 +70,8 @@ router.beforeEach((to, from, next) => { //store.commit('portal/SetBackUrl',location.href); //console.log(location.href,'location.href'); //let urlPre=window.location.protocol+'//'+window.location.host; - //let backUrl=location.href.substring(urlPre.length); - location.href=process.env.VUE_APP_LOGIN_URL+"?returnUrl="+location.href; + //let backUrl=location.href.substring(urlPre.length); encodeURIComponent() + location.href=process.env.VUE_APP_LOGIN_URL+"?returnUrl="+encodeURIComponent(location.href); NProgress.done() } diff --git a/src/views/portal/boeframe.vue b/src/views/portal/boeframe.vue index 458cb170..8406b655 100644 --- a/src/views/portal/boeframe.vue +++ b/src/views/portal/boeframe.vue @@ -24,6 +24,10 @@ import portalFooter from "@/components/PortalFooter.vue"; this.id = this.$route.query.id; this.type = this.$route.query.type; let urlPre=window.location.protocol+'//'+window.location.host; + + let params='detailId='+this.id+'&inner=1'; + params=encodeURIComponent(params); + //console.log(urlPre,'urlPre'); if(this.type == 20 || this.type=='online-course') {//在线课 this.url= `${urlPre}/web/onlineClass?detailId=${this.id}&inner=1`