UNPKG

xlb-main-login

Version:

``` yarn install ```

20 lines (18 loc) 442 B
import { auth_url } from './config' import { axios } from '@/utils/request' // 注册 export function setRegister(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8', }, url: auth_url + '/register', method: 'post', data, }).catch(function (error) { if (error.response) { const res = error.response.data return Promise.resolve(res) } }) }