diff --git a/mock/chart.js b/mock/chart.js index f9a98078e20c90c1a9e6ba62a366af449258c40e..65037758d3df756c4307e8ba651c2948b295a03c 100644 --- a/mock/chart.js +++ b/mock/chart.js @@ -158,7 +158,6 @@ const radarOriginData = [ }, ]; -// const radarData = []; const radarTitleMap = { ref: '引用', diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js index bf9cf4fe41d5771891fed5d671056d8485ddfe4a..731b3b93f303448341f56c9215853cc574cbe8d0 100644 --- a/src/layouts/BasicLayout.js +++ b/src/layouts/BasicLayout.js @@ -206,8 +206,8 @@ class BasicLayout extends React.PureComponent { }; renderSettingDrawer() { - // Do show SettingDrawer in production - // unless deployed in preview.pro.ant.design as demo + // Do not render SettingDrawer in production + // unless it is deployed in preview.pro.ant.design as demo const { rendering } = this.state; if ((rendering || process.env.NODE_ENV === 'production') && APP_TYPE !== 'site') { return null; diff --git a/src/models/setting.js b/src/models/setting.js index 477a958896081c7f029597e9243ba44fcf8810e1..171da48d1ef5c3068f256b02ff617dae8e4a5908 100644 --- a/src/models/setting.js +++ b/src/models/setting.js @@ -3,7 +3,7 @@ import defaultSettings from '../defaultSettings'; let lessNodesAppended; const updateTheme = primaryColor => { - // // Don't compile less in production! + // Don't compile less in production! if (APP_TYPE !== 'site') { return; }