fix ==> redirectToLink

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-20 17:36:46 +07:00
parent 4c1c2c6084
commit e3d93ca713
11 changed files with 80 additions and 17 deletions

View file

@ -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>