fix ==> redirectToLink
This commit is contained in:
parent
bf022bdb73
commit
1530d538ca
5 changed files with 50 additions and 14 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue