This commit is contained in:
2020-08-08 15:40:48 +08:00
parent 597c92e9cd
commit 9e96eeb575
3 changed files with 262 additions and 39 deletions

View File

@@ -1,10 +1,14 @@
<script>
import { mapMutations, mapState } from 'vuex';
export default {
globalData: {
im: {}
},
computed: {
...mapState(["hasLogin"])
},
onLaunch() {
getApp().globalData.im = this.imService
// 缓存token
uni.getStorage({
key: "token",