text: import axios from 'axios';
  
  //登录
  export const requestLogin = params => {
      return axios.request({
          url: '/login',
          method: 'POST',
          params: params
      }).then(res => res.data);
  };
  
  //注销
  export const requestLogout = () => {
      return axios.request({
              url: '/logout',
              method: 'post',
          }
      ).then(res => res.data);
  }
  
  export const requestRegister = (params)=>{
      return axios.request({
          url: '/register',
          method: 'post',
          data:{
              ...params
          }
      }).then(res => res.data);
  }
  //引入组件
  export const _import = (component)=>{
      return import(`@/components${component}`)
  }
  
  
  
  