Skip to content

Commit

Permalink
feat: remove codes
Browse files Browse the repository at this point in the history
  • Loading branch information
juzhiyuan committed Jun 12, 2020
1 parent d80f6cd commit 385070f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/views/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ export default class extends Vue {
private redirect?: string

private async handleLogin() {
console.log(this.loginForm)
await UserModule.Login({ username: '', password: '' })
localStorage.setItem('GLOBAL_API_KEY', this.loginForm.apikey)
window.location.replace('/dashboard')
window.location.replace('/')
}
}
</script>
Expand Down

0 comments on commit 385070f

Please sign in to comment.