mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-11-12 12:13:46 +08:00
chore: remove useless system config items
This commit is contained in:
@@ -145,7 +145,6 @@ const placeholder = ref("用户名:")
|
||||
|
||||
httpGet("/api/admin/config/get?key=system").then(res => {
|
||||
if (res.data) {
|
||||
enableRegister.value = res.data['enabled_register']
|
||||
const registerWays = res.data['register_ways']
|
||||
if (arrayContains(registerWays, "mobile")) {
|
||||
enableMobile.value = true
|
||||
@@ -156,6 +155,9 @@ httpGet("/api/admin/config/get?key=system").then(res => {
|
||||
ways.push("邮箱地址")
|
||||
}
|
||||
placeholder.value += ways.join("/")
|
||||
if (ways.length === 0) {
|
||||
enableRegister.value = false
|
||||
}
|
||||
}
|
||||
}).catch(e => {
|
||||
ElMessage.error("获取系统配置失败:" + e.message)
|
||||
|
||||
Reference in New Issue
Block a user