Merge branch 'dev' of https://fcd.gdyditc.com/itc-framework/ma/2024/front into dev
This commit is contained in:
24
src/views/secondDev/SingleLogin.vue
Normal file
24
src/views/secondDev/SingleLogin.vue
Normal file
@ -0,0 +1,24 @@
|
||||
<template>
|
||||
<div style="width: 100%; height: 300px; display: flex;justify-content: center;align-items: center;">
|
||||
<a-spin />
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { onMounted } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const { currentRoute } = useRouter();
|
||||
const userStore = useUserStore();
|
||||
onMounted(async () => {
|
||||
const fullPath = currentRoute.value.fullPath;
|
||||
const list = fullPath.split('targetURL=');
|
||||
const targetURL = list[1];
|
||||
let params = {...currentRoute.value.query, targetURL: targetURL, mode: 'none' }; //不要默认的错误提示
|
||||
await userStore.singleLogin(params);
|
||||
});
|
||||
|
||||
</script>
|
||||
<style lang="less">
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user