From 7f264e4ba673f432a7caa5eb17291c1dac034915 Mon Sep 17 00:00:00 2001 From: qianxu Date: Wed, 15 Nov 2023 11:20:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(link):=20=E4=BF=AE=E5=A4=8D=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=96=B9=E5=BC=8F=E4=B8=BA=E8=BF=94=E5=9B=9E=E6=88=96?= =?UTF-8?q?=E9=80=80=E5=87=BA=E6=97=B6=E9=93=BE=E6=8E=A5=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=B8=BA=E7=A6=81=E7=94=A8=E7=9A=84=E9=97=AE=E9=A2=98=20(#2226?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/link/link.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/link/link.ts b/src/link/link.ts index 663958310..4c509ebd3 100644 --- a/src/link/link.ts +++ b/src/link/link.ts @@ -58,7 +58,10 @@ export default class Link extends SuperComponent { if (underline) { classList.push(`${name}--underline`); } - if ((navigatorProps && !navigatorProps.url) || disabled) { + if ( + (navigatorProps && !navigatorProps.url && !['navigateBack', 'exit'].includes(navigatorProps.openType)) || + disabled + ) { classList.push(`${name}--disabled`); }