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`