fix ==> redirectToLink
This commit is contained in:
parent
4c1c2c6084
commit
e3d93ca713
11 changed files with 80 additions and 17 deletions
|
|
@ -1,7 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { onMounted } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import { setAuthen } from "@/plugins/auth";
|
||||
|
||||
const route = useRoute();
|
||||
|
|
@ -13,7 +12,11 @@ onMounted(async () => {
|
|||
expires_in: route.query.expires ? route.query.expires : 36000,
|
||||
refresh_token: route.query.accessToken,
|
||||
};
|
||||
setAuthen(params, "y");
|
||||
setAuthen(
|
||||
params,
|
||||
"y",
|
||||
route.query.redirectUrl ? (route.query.redirectUrl as string) : "/"
|
||||
);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue