index.ts 509 Bytes
import request from '../request'
import { AxiosRequestConfig } from 'axios';

export const login = async ( params: any, data: any ) => {
  // let res: any = await request.post( '/login', data, {userName: '123', password: 'cmnt123'} )
  let res: any = await request({
    url: '/login',
    method: 'post',
    data: {
      userName: '123',
      password: 'cmnt123'
    }
  })
  // let res: any = await request( {url: '/neighborhood/getList', params:{propertyId: 1, type: 1}, method: 'post' })
  return res
}