From 024cc5e9e6fd51e3b0e14e8d3f76c63f1351a4f7 Mon Sep 17 00:00:00 2001 From: wanghong <309858992@qq.com> Date: 星期四, 21 十二月 2023 12:25:35 +0800 Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复 --- 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