fix bugs
This commit is contained in:
18
src/page/login/authredirect.vue
Normal file
18
src/page/login/authredirect.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<template>
|
||||
<div></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'authredirect',
|
||||
created() {
|
||||
window.close();
|
||||
const params = this.$route.query;
|
||||
const state = params.state;
|
||||
const code = params.code;
|
||||
window.opener.location.href = `${window.location.origin}/#/login?state=${state}&code=${code}`;
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
Reference in New Issue
Block a user