diff --git a/src/components/SettingDrawer/index.js b/src/components/SettingDrawer/index.js index 8950bb7a3af177d197e444265ab43ea9f8373a06..a860902dddec43d7f0c698bed68f1b82a299ea30 100644 --- a/src/components/SettingDrawer/index.js +++ b/src/components/SettingDrawer/index.js @@ -213,7 +213,18 @@ class SettingDrawer extends PureComponent { + {formatMessage({ id: 'app.setting.production.hint' })}{' '} + + src/defaultSettings.js + + + } /> diff --git a/src/components/SettingDrawer/index.less b/src/components/SettingDrawer/index.less index 57d88cb86db85a8eb8ef5553e83d0ef2591f695f..5b660525fc5606f822a398c2ff26a325d3ed83ab 100644 --- a/src/components/SettingDrawer/index.less +++ b/src/components/SettingDrawer/index.less @@ -70,6 +70,5 @@ .productionHint { font-size: 12px; - color: @text-color-secondary; margin-top: 16px; } diff --git a/src/locales/en-US.js b/src/locales/en-US.js index 55a766643b10522293bdc514dfdd7e23ed16c809..f48a609298d116e017e7ff17f48f50a6077cadbb 100644 --- a/src/locales/en-US.js +++ b/src/locales/en-US.js @@ -181,5 +181,5 @@ export default { 'app.setting.copy': 'Copy Setting', 'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js', 'app.setting.production.hint': - 'Setting panel show in development enviorment only, please modify src/defaultSettings.js mannually.', + 'Setting panel show in development enviorment only, please mannually modify', }; diff --git a/src/locales/zh-CN.js b/src/locales/zh-CN.js index 42cbeb84c751456a6cbe3aded0e437d8f67b1913..bf237dfcd4820e205c0db6c31922376b36eb7380 100644 --- a/src/locales/zh-CN.js +++ b/src/locales/zh-CN.js @@ -177,5 +177,5 @@ export default { 'app.setting.copy': '拷贝设置', 'app.setting.copyinfo': '拷贝成功,请到 src/defaultSettings.js 中替换默认配置', 'app.setting.production.hint': - '配置栏只在开发环境用于预览,请拷贝后手动修改 src/defaultSettings.js', + '配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件', };