text: import { request } from '@/plugins/request'
  
  //登录
  export const login = data => {
      return request({
          method: 'POST',
          url: "/api/users/login",
          data
      })
  }
  
  //注册
  export const register = data => {
      return request({
          method: 'POST',
          url: "/api/users",
          data
      })
  }
  
  //修改
  export const updateUser = data => {
      return request({
          method: 'PUT',
          url: "/api/user",
          data
      })
  }