解决审核重置 和 url编码问题

This commit is contained in:
daihh
2022-10-16 17:57:50 +08:00
parent 8f8baedefb
commit dff69a4dc2
3 changed files with 4 additions and 1 deletions

View File

@@ -71,7 +71,8 @@ router.beforeEach((to, from, next) => {
//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;
//location.href=process.env.VUE_APP_LOGIN_URL+"?returnUrl="+location.href;
location.href=process.env.VUE_APP_LOGIN_URL+"?returnUrl="+encodeURIComponent(location.href);
NProgress.done()
}