| 123456789101112131415161718192021222324 |
- import {
- useCodeServer
- } from '@/config/server-info'
- import axios from '@/plugins/axios'
- export function sendEmailCode ({ email }) {
- return axios
- .post(useCodeServer('/email'), null, {
- params: {
- email
- }
- })
- .then(res => {})
- }
- export function sendPhoneCode ({ phone }) {
- return axios
- .post(useCodeServer('/phone'), null, {
- params: {
- phone
- }
- })
- .then(res => {})
- }
|