This commit is contained in:
2024-03-19 11:19:46 +08:00
parent b054214766
commit 90ab3585d9

View File

@ -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)
})