text: import { axios } from '@/utils/request'
  
  /**
   * login func
   * parameter: {
   *     username: '',
   *     password: '',
   *     remember_me: true,
   *     captcha: '12345'
   * }
   * @param parameter
   * @returns {*}
   */
  export function login (parameter) {
    return axios({
      url: '/oauth2/login',
      method: 'post',
      headers: {
        'Authorization': 'Basic dGVzdDoxMjM0NTY=',
        'Content-Type': 'application/x-www-form-urlencoded'
      },
      data: parameter
    })
  }
  
  export function getInfo () {
    return axios({
      url: '/api/user/info',
      method: 'get',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      }
    })
  }
  
  export function getCurrentUserNav () {
    return axios({
      url: 'system/menu/getNav',
      method: 'get'
    })
  }
  
  export function logout () {
    return axios({
      url: '/auth/logout',
      method: 'post',
      headers: {
        'Content-Type': 'application/json;charset=UTF-8'
      }
    })
  }
  