From 627363ffd5e9808dd5f2e367fa1552d3c50700df Mon Sep 17 00:00:00 2001 From: FansOne <35479628+FansOne@users.noreply.github.com> Date: Fri, 22 May 2026 17:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E5=B1=82=E5=B5=8C=E5=A5=97?= =?UTF-8?q?=E6=A0=87=E7=AD=BE=E6=8A=A5=E9=94=99bug=20vue2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sandbox/adapter.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sandbox/adapter.ts b/src/sandbox/adapter.ts index 72938c57..62d2b869 100644 --- a/src/sandbox/adapter.ts +++ b/src/sandbox/adapter.ts @@ -157,7 +157,10 @@ export function updateElementInfo (node: T, appName: string | null): T { if (isAnchorElement(node)) { // a 标签 const microApp = AppManager.getInstance().get(appName) - if (microApp) { + const hrefDescriptor = Object.getOwnPropertyDescriptor(node, 'href') + const hrefConfigurable = hrefDescriptor?.configurable || !hrefDescriptor + + if (microApp && hrefConfigurable) { props.href = { get() { return this.getAttribute('href')