text: import {getUserInfo} from "@/api/auth";
  import * as types from './mutation-type'
  import auth from "@/api/auth";
  export default {
      async getUserInfo({ commit }) {
          let data = {}
          try {
              data = await getUserInfo()
              commit(types.UPDATEUSERINFO, data.data)
          } finally {
              console.log(data)
          }
      },
      async logout() {
          await auth.logout()
      }
  }
  