base.js 182 B

1234567891011
  1. let userInfo = undefined
  2. // 退出登录清除storage里的数据
  3. const logout = () => {
  4. userInfo = undefined
  5. uni.removeStorage({
  6. key: 'userInfo'
  7. })
  8. }
  9. export default {
  10. logout
  11. }