* [misc] set header "X-ZIN-Tutorial" for any ajax request in tutorial mode.

This commit is contained in:
sunhao
2024-09-12 13:53:53 +08:00
committed by 谢杞钰
parent a1b524879c
commit 5be7f0e6cc
+7
View File
@@ -342,6 +342,13 @@ function highlightStepTarget($target, step, popoverOptions)
{
presentStep();
});
if(scope.zui.Ajax.globalBeforeSends)
{
scope.zui.Ajax.globalBeforeSends.push(function(options)
{
options.headers['X-ZIN-Tutorial'] = getCurrentStepID();
});
}
});
}