From 48477c7ca400dfebbeefb45b968f4f75cd88c1ce Mon Sep 17 00:00:00 2001 From: sunhao Date: Wed, 21 Aug 2024 15:02:26 +0800 Subject: [PATCH] * [misc] fix getStepScope issue. --- module/tutorial/js/index.ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tutorial/js/index.ui.js b/module/tutorial/js/index.ui.js index 127910e243..51aa591052 100644 --- a/module/tutorial/js/index.ui.js +++ b/module/tutorial/js/index.ui.js @@ -342,7 +342,7 @@ function getStepScope(step) { step.scope = homeScope; } - else + else if(homeScope.$ && homeScope.$.apps) { const openedApp = step.app ? homeScope.$.apps.openedApps[step.app] : homeScope.$.apps.getLastApp(); if(openedApp) step.scope = openedApp.iframe.contentWindow;