Skip to content

Commit

Permalink
perf(GLOBAL_CONFIG): 减少不必要的配置输出
Browse files Browse the repository at this point in the history
  • Loading branch information
inkss committed Jun 10, 2022
1 parent 7a94b11 commit 2aa234f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions layout/_partial/scripts/global.ejs
Expand Up @@ -26,17 +26,23 @@
plugins: {
message: <%- JSON.stringify(theme.plugins.message) %>,
fancybox: <%- JSON.stringify(theme.plugins.fancybox) %>,
<% if(theme.plugins.aplayer.enable) { %>
aplayer: {
id: <%- JSON.stringify(theme.plugins.aplayer.id) %>,
enable:<%- JSON.stringify(theme.plugins.aplayer.enable) %>
},
<% } %>
<% if(theme.rightmenu.enable) { %>
rightmenu: {
faicon: <%- JSON.stringify(theme.rightmenu.faicon) %>,
layout: <%- JSON.stringify(theme.rightmenu.layout) %>,
music_alwaysShow: <%- JSON.stringify(theme.rightmenu.music.alwaysShow) %>,
customPicUrl: <%- JSON.stringify(theme.rightmenu.customPicUrl) %>
},
<% } %>
<% if(theme.rightmenus.enable) { %>
rightmenus: <%- JSON.stringify(theme.rightmenus) %>
<% } %>
}
}
Expand Down

0 comments on commit 2aa234f

Please sign in to comment.