fix ==> redirectToLink
This commit is contained in:
parent
370050eab9
commit
6772b0325b
5 changed files with 54 additions and 16 deletions
|
|
@ -6,7 +6,12 @@ import { storeToRefs } from "pinia";
|
|||
import { scroll, useQuasar } from "quasar";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useMenuDataStore } from "@/stores/menuList";
|
||||
import { tokenParsed, logout, getCookie } from "@/plugins/auth";
|
||||
import {
|
||||
tokenParsed,
|
||||
logout,
|
||||
getCookie,
|
||||
redirectToLandingPage,
|
||||
} from "@/plugins/auth";
|
||||
import avatar from "@/assets/avatar_user.jpg";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
|
|
@ -758,7 +763,11 @@ function onViewDetailNoti(url: string) {
|
|||
เลือกโหมด
|
||||
</div> -->
|
||||
<q-list dense>
|
||||
<q-item clickable :href="landingPageUrl" v-if="isSsoToken">
|
||||
<q-item
|
||||
clickable
|
||||
@click="redirectToLandingPage"
|
||||
v-if="isSsoToken"
|
||||
>
|
||||
<q-item-section avatar>
|
||||
<q-avatar
|
||||
color="blue"
|
||||
|
|
|
|||
|
|
@ -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