fix ==> redirectToLink

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-20 17:35:32 +07:00
parent bf022bdb73
commit 1530d538ca
5 changed files with 50 additions and 14 deletions

View file

@ -7,7 +7,12 @@ import { useQuasar } from "quasar";
import { useCounterMixin } from "@/stores/mixin";
import CustomComponent from "@/components/CustomDialog.vue";
import avatar from "@/assets/avatar_user.jpg";
import { tokenParsed, logout, getCookie } from "@/plugins/auth";
import {
tokenParsed,
logout,
getCookie,
redirectToLandingPage,
} from "@/plugins/auth";
import { useDataStore } from "@/stores/data";
@ -502,7 +507,7 @@ function onViewDetailNoti(url: string) {
<q-item
clickable
v-close-popup
:href="landingPageUrl"
@click="redirectToLandingPage"
v-if="isSsoToken"
>
<q-item-section avatar style="min-width: 30px">

View file

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