fix ==> redirectToLink
This commit is contained in:
parent
4c1c2c6084
commit
e3d93ca713
11 changed files with 80 additions and 17 deletions
|
|
@ -6,7 +6,12 @@ import { useQuasar } from "quasar";
|
|||
import { useRoute } from "vue-router";
|
||||
import config from "@/app.config";
|
||||
import http from "@/plugins/http";
|
||||
import { logout, tokenParsed, getCookie } from "@/plugins/auth";
|
||||
import {
|
||||
logout,
|
||||
tokenParsed,
|
||||
getCookie,
|
||||
redirectToLandingPage,
|
||||
} from "@/plugins/auth";
|
||||
import checkPermission from "@/plugins/checkPermission";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import { useDataStore } from "@/stores/data";
|
||||
|
|
@ -627,7 +632,11 @@ onUnmounted(() => {
|
|||
</div> -->
|
||||
<!-- <q-option-group v-model="group" :options="options" color="primary"/> -->
|
||||
<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"
|
||||
|
|
|
|||
|
|
@ -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