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