From 1c1ffda32180956370398ceae66357cdefe2fef8 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 25 九月 2023 16:05:36 +0800 Subject: [PATCH] 单点登录-传参空格转换 --- Source/UBCS-WEB/src/page/login/sso.vue | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue index 26e9510..0b83696 100644 --- a/Source/UBCS-WEB/src/page/login/sso.vue +++ b/Source/UBCS-WEB/src/page/login/sso.vue @@ -23,7 +23,10 @@ methods: { onLoad() { - this.PathString=this.$route.query.empCode; + //URL浼犻�掑弬鏁版椂 浼氬皢瀛楃涓蹭腑鐨� %2B 涔熷氨鏄�+鍙疯浆鎹负绌烘牸銆� + this.PathString = decodeURIComponent(this.$route.query.empCode.replace(/\s/g, '+')); + console.log(this.$route); + console.log(this.PathString); this.$store.dispatch("LoginBySso", { PathString: this.PathString }).then((res) => { console.log('res', res) this.$router.push({ path: this.tagWel.value }); -- Gitblit v1.9.3