实现注册功能

This commit is contained in:
scholar
2024-09-10 11:35:49 +08:00
parent 2205526a79
commit b2dd170884
2 changed files with 74 additions and 55 deletions

View File

@ -1,6 +1,6 @@
import request from '@/config/axios'
import { getRefreshToken } from '@/utils/auth'
import type {RegisterVO, UserLoginVO} from './types'
import type { RegisterVO, UserLoginVO } from './types'
export interface SmsCodeVO {
mobile: string
@ -19,7 +19,6 @@ export const login = (data: UserLoginVO) => {
// 注册
export const register = (data: RegisterVO) => {
console.log("data: RegisterVO=========",data)
return request.post({ url: '/system/auth/register', data })
}