MrShi
3 天以前 fc9240bd6b246ad71c4050510880a49ce07138a3
mini-program/store/index.js
@@ -60,6 +60,15 @@
      setPosition(state, val) {
         state.position = val
      },
      // 退出
      clear(state) {
         state.userInfo = ''
         state.token = ''
         state.openid = ''
         uni.removeStorageSync('userInfo');
         uni.removeStorageSync('token');
         uni.removeStorageSync('openid');
      }
   },
   
   actions: {