Fix linting.
This commit is contained in:
parent
9af204b293
commit
60b3e4f40f
@ -1,4 +1,4 @@
|
||||
import oauthApi from "../../services/new_api/oauth.js";
|
||||
import oauthApi from '../../services/new_api/oauth.js'
|
||||
const LoginForm = {
|
||||
data: () => ({
|
||||
user: {},
|
||||
@ -14,7 +14,7 @@ const LoginForm = {
|
||||
oauth: this.$store.state.oauth,
|
||||
instance: this.$store.state.instance.server,
|
||||
commit: this.$store.commit
|
||||
});
|
||||
})
|
||||
},
|
||||
submit () {
|
||||
this.$store.dispatch('loginUser', this.user).then(
|
||||
|
@ -9,8 +9,8 @@ const oac = {
|
||||
instance: this.$store.state.instance.server,
|
||||
code: this.code
|
||||
}).then((result) => {
|
||||
this.$store.commit("setToken", result.access_token)
|
||||
this.$store.dispatch("loginUser", result.access_token)
|
||||
this.$store.commit('setToken', result.access_token)
|
||||
this.$store.dispatch('loginUser', result.access_token)
|
||||
this.$router.push('/main/friends')
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user