feat: add system config item for wechat qrcode

This commit is contained in:
RockYang
2024-01-19 16:58:13 +08:00
parent b317d597ac
commit 3b1544b5e4
7 changed files with 320 additions and 254 deletions

View File

@@ -156,6 +156,10 @@ httpGet("/api/admin/config/get?key=system").then(res => {
placeholder.value += ways.join("/")
// 是否启用注册
enableRegister.value = res.data['enabled_register']
// 覆盖微信二维码
if (res.data['wechat_card_url'] !== '') {
wxImg.value = res.data['wechat_card_url']
}
}
}).catch(e => {
ElMessage.error("获取系统配置失败:" + e.message)