perf: optimize page view name (#1835)

This commit is contained in:
花裤衩
2019-04-04 12:58:37 +08:00
committed by GitHub
parent 184125bdd3
commit 43115e5538
5 changed files with 4 additions and 4 deletions

View File

@@ -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>