add login loading
This commit is contained in:
@@ -130,7 +130,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
let loggedUser = this.$store.state.loggedUser
|
let loggedUser = this.$store.state.loggedUser
|
||||||
getJointAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
getJointAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
||||||
// this.$store.commit('userJointAccounts', data)
|
this.$store.commit('userJointAccounts', data)
|
||||||
this.jointAccounts = data
|
this.jointAccounts = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -147,7 +147,7 @@ export default {
|
|||||||
loadJointAccounts() {
|
loadJointAccounts() {
|
||||||
let loggedUser = this.$store.state.loggedUser
|
let loggedUser = this.$store.state.loggedUser
|
||||||
getJointAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
getJointAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
||||||
// this.$store.commit('userJointAccounts', data)
|
this.$store.commit('userJointAccounts', data)
|
||||||
this.jointAccounts = data
|
this.jointAccounts = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ export default {
|
|||||||
beforeCreate() {
|
beforeCreate() {
|
||||||
let loggedUser = this.$store.state.loggedUser
|
let loggedUser = this.$store.state.loggedUser
|
||||||
getAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
getAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
||||||
// this.$store.commit('userAccounts', data)
|
this.$store.commit('userAccounts', data)
|
||||||
this.accounts = data
|
this.accounts = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -122,7 +122,7 @@ export default {
|
|||||||
loadAccounts() {
|
loadAccounts() {
|
||||||
let loggedUser = this.$store.state.loggedUser
|
let loggedUser = this.$store.state.loggedUser
|
||||||
getAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
getAccounts(loggedUser.oauth_token, loggedUser.nosComptesId).then(data => {
|
||||||
// this.$store.commit('userAccounts', data)
|
this.$store.commit('userAccounts', data)
|
||||||
this.accounts = data
|
this.accounts = data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import router from '@/router/router'
|
import router from '@/router/router'
|
||||||
import {logWithGoogle, getAccounts} from '@/service/noscomptes'
|
import {logWithGoogle, getAccounts} from '@/service/noscomptes'
|
||||||
|
import {getJointAccounts} from "@/service/jointAccount";
|
||||||
export default {
|
export default {
|
||||||
name: 'login_signup_social',
|
name: 'login_signup_social',
|
||||||
mounted () {
|
mounted () {
|
||||||
@@ -36,6 +37,9 @@ export default {
|
|||||||
getAccounts(userInfo.oauth_token, userInfo.nosComptesId).then(data => {
|
getAccounts(userInfo.oauth_token, userInfo.nosComptesId).then(data => {
|
||||||
this.$store.commit('userAccounts', data)
|
this.$store.commit('userAccounts', data)
|
||||||
})
|
})
|
||||||
|
getJointAccounts(userInfo.oauth_token, userInfo.nosComptesId).then(data => {
|
||||||
|
this.$store.commit('userJointAccounts', data)
|
||||||
|
})
|
||||||
router.push('/')
|
router.push('/')
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
|
|||||||
Reference in New Issue
Block a user