feat(auth): 新增微信聚合登录入口与账号绑定卡\n\n- OAuthButtons.vue: aggregate 启用时渲染微信登录按钮,微信绿 hover + 专属 SVG 图标\n- OAuthBindingCard.vue: 新增微信 aggregate 绑定卡,支持绑定跳转 /api/auth/aggregate 和解绑\n- account/index.vue: hasOAuthProviders 判定加入 aggregate\n- oauth.ts: getProviderDisplayName 中 aggregate 映射为 微信
This commit is contained in:
+2
-1
@@ -2,7 +2,8 @@ export const getProviderDisplayName = (provider: string): string => {
|
||||
const map: Record<string, string> = {
|
||||
github: 'GitHub',
|
||||
casdoor: 'Casdoor',
|
||||
google: 'Google'
|
||||
google: 'Google',
|
||||
aggregate: '微信'
|
||||
}
|
||||
return map[provider.toLowerCase()] || provider.charAt(0).toUpperCase() + provider.slice(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user