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