全局增加关于登录信息的扩展埋点
This commit is contained in:
@@ -43,7 +43,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
...mapMutations(['setToken', 'setFinanceUser']),
|
||||
...mapMutations(['setToken', 'getFinanceUser']),
|
||||
...mapActions(['getUserInfo']),
|
||||
getToken(params) {
|
||||
if (params.access_token) {
|
||||
@@ -62,9 +62,9 @@ export default {
|
||||
},
|
||||
created() {
|
||||
wx = jWeixin
|
||||
if (this.user.token) this.getUserInfo().then(() => {
|
||||
if (this.user.token) this.getUserInfo().finally(() => {
|
||||
if (/^\/project\/xiushan/.test(location.pathname)) {
|
||||
this.setFinanceUser()
|
||||
this.getFinanceUser()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user