修改
This commit is contained in:
parent
b054214766
commit
90ab3585d9
4
App.vue
4
App.vue
@ -9,8 +9,12 @@
|
|||||||
onLaunch: function() {},
|
onLaunch: function() {},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations(['socketOpenfalse']),
|
...mapMutations(['socketOpenfalse']),
|
||||||
|
...mapMutations(['scoket']),
|
||||||
},
|
},
|
||||||
onShow: function() {
|
onShow: function() {
|
||||||
|
if (uni.getStorageSync('patientId') && !this.$store.state.socketOpen) {
|
||||||
|
this.scoket();
|
||||||
|
}
|
||||||
createMobileToken().then(res => {
|
createMobileToken().then(res => {
|
||||||
uni.setStorageSync("token", res.data.token)
|
uni.setStorageSync("token", res.data.token)
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user