Files
mt-qj-wms-ui/src/views/login/auth-redirect.vue
2021-09-27 10:01:12 +08:00

16 lines
318 B
Vue

<script>
export default {
name: 'AuthRedirect',
created() {
const hash = window.location.search.slice(1)
if (window.localStorage) {
window.localStorage.setItem('x-admin-oauth-code', hash)
window.close()
}
},
render: function(h) {
return h() // avoid warning message
}
}
</script>