考试二维码,returnUrl 编码处理

This commit is contained in:
daihh
2022-10-23 22:58:01 +08:00
parent 23abfbe514
commit 5509e9cdfa

View File

@@ -1054,7 +1054,8 @@ export default {
//正式环境直接根据域名计算 //正式环境直接根据域名计算
let urlPre=window.location.protocol+'//'+window.location.host; let urlPre=window.location.protocol+'//'+window.location.host;
//this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id //this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id
this.qrcode =urlPre+'/m?returnUrl='+urlPre+'/mobile/pages/login/loading?returnUrl='+urlPre+'/mobile/pages/exam/exam?id=' + row.id let returnUrl=encodeURIComponent(urlPre+'/mobile/pages/login/loading?returnUrl=/pages/exam/exam?id=' + row.id);
this.qrcode =urlPre+'/m?returnUrl='+returnUrl;
//通过配置来写 //通过配置来写
//let urlPre=process.env.VUE_APP_BOE_MOBILE_URL; //let urlPre=process.env.VUE_APP_BOE_MOBILE_URL;
//this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id //this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id