This commit is contained in:
lcw
2025-10-09 21:32:38 +08:00
parent 857b1afe46
commit 2d98c8480c
126 changed files with 713 additions and 256 deletions

View File

@ -3,7 +3,7 @@
<script setup>
import { ref, onMounted } from "vue";
import { useStore } from "vuex";
import { useRouter } from "vue-router";
import { useRouter,useRoute } from "vue-router";
import {
setItem
} from "@/utils/storage";
@ -11,13 +11,17 @@ const loginDialog = ref(false);
const deptList = ref([]);
const store = useStore();
function redirectAuth() {
let token = location.hash.slice(20) || null;
// 从路由参数中获取token
const route = useRoute();
let token = route.query.token || null;
console.log(token,"xxxxxxxx");
if (token != null) {
token = token.replace(/\ +/g, "");
setItem("SSOTOKEN", token)
handleLogin({ token: token});
} else {
window.location.href = `http://155.240.22.102:40992`;
window.location.href = `http://155.240.22.188:9020`;
}
}