From 8470a4ae665d8b7f7621479c09664c7a3ff0f210 Mon Sep 17 00:00:00 2001 From: xiejun <xj@2023> Date: 星期一, 25 九月 2023 17:26:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/page/login/sso.vue | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/Source/UBCS-WEB/src/page/login/sso.vue b/Source/UBCS-WEB/src/page/login/sso.vue index 26e9510..54c3430 100644 --- a/Source/UBCS-WEB/src/page/login/sso.vue +++ b/Source/UBCS-WEB/src/page/login/sso.vue @@ -1,12 +1,12 @@ <template> - + </template> - + <script> import {ssoLogin} from "@/api/system/user.js" import {mapGetters} from "vuex"; import {setStore} from "@/util/store"; - + export default { name: "sso", data() { @@ -20,10 +20,13 @@ created() { this.onLoad() }, - + 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 }); @@ -32,7 +35,7 @@ } } </script> - + <style scoped> - -</style> + +</style> \ No newline at end of file -- Gitblit v1.9.3