修改数据不更新
This commit is contained in:
parent
a42e351939
commit
be1dafc7ea
@ -1243,6 +1243,7 @@ export default {
|
|||||||
this.$axios.get(process.env.VUE_APP_API_URL+'/api/user/state',{ params: '',
|
this.$axios.get(process.env.VUE_APP_API_URL+'/api/user/state',{ params: '',
|
||||||
headers: { Authorization: `Bearer ${this.token}` },
|
headers: { Authorization: `Bearer ${this.token}` },
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
this.myScoreTotal = res.data.data.scoreTotal
|
||||||
localStorage.setItem('userData', JSON.stringify(res.data.data))
|
localStorage.setItem('userData', JSON.stringify(res.data.data))
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user