From fa175c896cdafac33cab2d8fe5152acaf989aa5f Mon Sep 17 00:00:00 2001 From: ShineKOT <1917095344@qq.com> Date: Mon, 24 Feb 2025 18:39:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=B8=8B?= =?UTF-8?q?=E6=96=87=E7=BC=BA=E5=A4=B1=E5=BA=94=E7=94=A8=E6=A0=87=E8=AF=86?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=87=8D=E5=AE=9A=E5=90=91=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devtool/src/install.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/devtool/src/install.ts b/packages/devtool/src/install.ts index 32e8ad0..9e7d661 100644 --- a/packages/devtool/src/install.ts +++ b/packages/devtool/src/install.ts @@ -39,9 +39,9 @@ export function listenOpenDevTool(router: IData) { Object.assign(parentContext, ibiz.appData.context); } const context = IBizContext.create(_context, parentContext); - if (appContext) { - Object.assign(context, appContext); - } + if (appContext) Object.assign(context, appContext); + if (!context.srfappid) + Object.assign(context, { srfappid: fullViewModel.appId }); return openRedirectView( fullViewModel as IAppRedirectView, context, @@ -67,7 +67,6 @@ export function listenOpenDevTool(router: IData) { 'message', async (event: MessageEvent) => { const data = event.data; - console.log(data); if (data && data.type && data.type === 'IBzOpenAppView' && data.context) { const { appContext } = route2routePath( router.currentRoute.value as any, -- Gitee