From 11d273cbb6156dacdb84daedba52ead6ab28d323 Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 15 Sep 2025 07:43:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(authentication):=20=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E7=99=BB=E5=BD=95=E5=92=8C=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=BB=84=E4=BB=B6=E5=A2=9E=E5=8A=A0=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=8C=89=E9=92=AE=E6=98=BE=E9=9A=90=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=20(#6713)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 CodeLogin 和 QrcodeLogin 组件中添加 showBack 属性 - 根据 showBack 属性决定是否显示返回按钮 - 默认值为 true,即默认显示返回按钮 --- .../effects/common-ui/src/ui/authentication/code-login.vue | 7 ++++++- .../common-ui/src/ui/authentication/qrcode-login.vue | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/effects/common-ui/src/ui/authentication/code-login.vue b/packages/effects/common-ui/src/ui/authentication/code-login.vue index 5dce7402..8045ea89 100644 --- a/packages/effects/common-ui/src/ui/authentication/code-login.vue +++ b/packages/effects/common-ui/src/ui/authentication/code-login.vue @@ -35,6 +35,10 @@ interface Props { * @zh_CN 按钮文本 */ submitButtonText?: string; + /** + * @zh_CN 是否显示返回按钮 + */ + showBack?: boolean; } defineOptions({ @@ -43,6 +47,7 @@ defineOptions({ const props = withDefaults(defineProps(), { loading: false, + showBack: true, loginPath: '/auth/login', submitButtonText: '', subTitle: '', @@ -110,7 +115,7 @@ defineExpose({ {{ submitButtonText || $t('common.login') }} - + {{ $t('common.back') }} diff --git a/packages/effects/common-ui/src/ui/authentication/qrcode-login.vue b/packages/effects/common-ui/src/ui/authentication/qrcode-login.vue index aee41a8d..493f98a7 100644 --- a/packages/effects/common-ui/src/ui/authentication/qrcode-login.vue +++ b/packages/effects/common-ui/src/ui/authentication/qrcode-login.vue @@ -35,6 +35,10 @@ interface Props { * @zh_CN 描述 */ description?: string; + /** + * @zh_CN 是否显示返回按钮 + */ + showBack?: boolean; } defineOptions({ @@ -44,6 +48,7 @@ defineOptions({ const props = withDefaults(defineProps(), { description: '', loading: false, + showBack: true, loginPath: '/auth/login', submitButtonText: '', subTitle: '', @@ -88,7 +93,7 @@ function goToLogin() {

- + {{ $t('common.back') }}