疯狂的狮子li
2020-02-14 83c427c1bbf5e8e9a07bdea946479b005da0297e
ruoyi-ui/src/views/login/auth-redirect.vue
对比新文件
@@ -0,0 +1,15 @@
<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>