auth-redirect.vue 333 B

123456789101112131415
  1. <script>
  2. export default {
  3. name: 'AuthRedirect',
  4. created() {
  5. const hash = window.location.search.slice(1)
  6. if (window.localStorage) {
  7. window.localStorage.setItem('x-admin-oauth-code', hash)
  8. window.close()
  9. }
  10. },
  11. render: function(h) {
  12. return h() // avoid warning message
  13. }
  14. }
  15. </script>