fixed bug for register page code verification

This commit is contained in:
RockYang
2024-09-12 15:42:09 +08:00
parent 49f2e1a71e
commit 961cee5e41
15 changed files with 259 additions and 20 deletions

View File

@@ -384,7 +384,7 @@ const submitRegister = () => {
if ((activeName.value === 'mobile' || activeName.value === 'email') && data.value.code === '') {
return ElMessage.error('请输入验证码');
}
if (enableVerify.value) {
if (enableVerify.value && activeName.value === 'username') {
captchaRef.value.loadCaptcha()
action.value = "register"
} else {

View File

@@ -90,12 +90,22 @@ const items = [
index: '/admin/user',
title: '用户管理',
},
{
icon: 'menu',
index: '/admin/app',
index: '1',
title: '应用管理',
subs: [
{
index: '/admin/app',
title: '应用列表',
},
{
index: '/admin/app/type',
title: '应用分类',
},
],
},
{
icon: 'api-key',
index: '/admin/apikey',