Merge branch 'dev-wangyiming'

This commit is contained in:
wlikett 2023-12-12 09:59:50 +08:00
commit 3ece6533d9
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { get, post } from '../../index'
// 获取验证码
export const getCodeInfoApi = (phone) => {
return post(`/zlpt-system/sms/send?phone=${phone}&type=2`, {})
return post(`/zlpt-system/sms/send?phone=${phone}&type=1`, {})
}
// 立即注册按钮
export const registerNowApi = (data) => {

View File

@ -1,5 +1,5 @@
<script setup lang="ts">
import { getCodeInfoApi, registerNowApi } from 'http/api/register/index'
import { getCodeInfoApi, registerNowApi } from '@/http/api/register/index'
import { ElMessage } from 'element-plus'
const router = useRouter()
// const userStore = useStore()
@ -26,7 +26,7 @@
if (res.code === 200) {
ElMessage({
showClose: true,
message: res.msg,
message: '验证码发送成功',
type: 'success'
})
reduceSeconds()