* [misc] prevent user click on apps bar in tutorial mode.

This commit is contained in:
sunhao
2024-09-11 11:18:09 +08:00
committed by 谢杞钰
parent c443f09cf5
commit e29a6dee39
+6 -1
View File
@@ -2,6 +2,7 @@ let currentGuide = '';
let currentTask = '';
let currentStep = null;
let popover = null;
let inited = false;
function showLog(name, step, moreTitles, moreInfos)
{
@@ -598,7 +599,11 @@ function presentStep(step)
if(config.debug) showLog('Present step', step, null, {presenter});
if(presenter) presenter(step);
getHomeScope().$('body').toggleClass('tutorial-not-open-app', step.type !== 'openApp');
const homeScope = getHomeScope();
homeScope.$('body').toggleClass('tutorial-not-open-app', step.type !== 'openApp');
if(inited) return;
homeScope.$('#appsBar').css('pointer-events', 'none');
inited = true;
}
function activeTaskStep(guideName, taskName, stepIndex)