fixed bug geek-plus#6, register page first tab not auto active

This commit is contained in:
RockYang 2024-09-19 09:03:14 +08:00
parent 0d81fe6c8e
commit b989199edb
3 changed files with 16 additions and 11 deletions

View File

@ -7,6 +7,7 @@
* 功能优化:允许用户在聊天页面设置是否使用流式输出或者一次性输出,兼容 GPT-O1 模型。 * 功能优化:允许用户在聊天页面设置是否使用流式输出或者一次性输出,兼容 GPT-O1 模型。
* 功能优化移除PayJS支付渠道支持PayJs已经关闭注册服务请使用其他支付方式。 * 功能优化移除PayJS支付渠道支持PayJs已经关闭注册服务请使用其他支付方式。
* 功能新增新增GeeK易支付支付渠道支持支付宝微信支付QQ钱包京东支付抖音支付Paypal支付等支付方式 * 功能新增新增GeeK易支付支付渠道支持支付宝微信支付QQ钱包京东支付抖音支付Paypal支付等支付方式
* Bug修复修复注册页面 tab 组件没有自动选中问题 [#6](https://github.com/yangjian102621/geekai-plus/issues/6)
## v4.1.3 ## v4.1.3
* 功能优化:重构用户登录模块,给所有的登录组件增加行为验证码功能,支持用户绑定手机,邮箱和微信 * 功能优化:重构用户登录模块,给所有的登录组件增加行为验证码功能,支持用户绑定手机,邮箱和微信

View File

@ -299,17 +299,17 @@ onMounted(() => {
getSystemInfo().then(res => { getSystemInfo().then(res => {
if (res.data) { if (res.data) {
const registerWays = res.data['register_ways'] const registerWays = res.data['register_ways']
if (arrayContains(registerWays, "mobile")) { if (arrayContains(registerWays, "username")) {
enableMobile.value = true enableUser.value = true
activeName.value = activeName.value === "" ? "mobile" : activeName.value activeName.value = 'username'
} }
if (arrayContains(registerWays, "email")) { if (arrayContains(registerWays, "email")) {
enableEmail.value = true enableEmail.value = true
activeName.value = activeName.value === "" ? "email" : activeName.value activeName.value = 'email'
} }
if (arrayContains(registerWays, "username")) { if (arrayContains(registerWays, "mobile")) {
enableUser.value = true enableMobile.value = true
activeName.value = activeName.value === "" ? "username" : activeName.value activeName.value = 'mobile'
} }
// //
enableRegister.value = res.data['enabled_register'] enableRegister.value = res.data['enabled_register']

View File

@ -223,14 +223,18 @@ getSystemInfo().then(res => {
title.value = res.data.title title.value = res.data.title
logo.value = res.data.logo logo.value = res.data.logo
const registerWays = res.data['register_ways'] const registerWays = res.data['register_ways']
if (arrayContains(registerWays, "mobile")) {
enableMobile.value = true if (arrayContains(registerWays, "username")) {
enableUser.value = true
activeName.value = 'username'
} }
if (arrayContains(registerWays, "email")) { if (arrayContains(registerWays, "email")) {
enableEmail.value = true enableEmail.value = true
activeName.value = 'email'
} }
if (arrayContains(registerWays, "username")) { if (arrayContains(registerWays, "mobile")) {
enableUser.value = true enableMobile.value = true
activeName.value = 'mobile'
} }
// //
enableRegister.value = res.data['enabled_register'] enableRegister.value = res.data['enabled_register']