From ca420bd9c09b51a404ade3e0106257725df727be Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 01 十一月 2023 11:32:28 +0800 Subject: [PATCH] 整合代码 --- 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