diff --git a/Yi.BBS.Vue3/src/apis/accountApi.js b/Yi.BBS.Vue3/src/apis/accountApi.js index 227aacc6..fadf8d24 100644 --- a/Yi.BBS.Vue3/src/apis/accountApi.js +++ b/Yi.BBS.Vue3/src/apis/accountApi.js @@ -65,4 +65,15 @@ export function logout() { timeout: 20000 }) } - \ No newline at end of file + // 获取短信验证码 + export function getCodePhone(phone) { + return request({ + url: '/account/captcha-phone', + headers: { + isToken: false + }, + method: 'post', + timeout: 20000, + data:{phone} + }) + } \ No newline at end of file diff --git a/Yi.BBS.Vue3/src/views/Register.vue b/Yi.BBS.Vue3/src/views/Register.vue index 43143c7a..c6c7130a 100644 --- a/Yi.BBS.Vue3/src/views/Register.vue +++ b/Yi.BBS.Vue3/src/views/Register.vue @@ -16,9 +16,15 @@ 手机短信验证码 + +