企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# _script_loader.html   其文件路径为:horizon\horizon\templates\horizon\client_side\_script_loader.html。将它复制到我们的主题目录中:horizon\openstack_dashboard\themes\maintenance\templates\horizon\client_side\_script_loader.html。它里面的代码为: ~~~ <script type="text/javascript" charset="utf-8"> /* Added so that we can append Horizon scoped JS events to the DOM load events without running in to the "horizon" name-space not currently being defined since we load the scripts at the bottom of the page. */ var addHorizonLoadEvent = function(func) { var old_onload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { old_onload(); func(); } } } </script> ~~~   这里面的代码,我们不需要动的,所以这个文件也不需要放进我们的主题中,直接用默认的就行了。