Commit 72ce7835 authored by afc163's avatar afc163 Committed by 陈帅

Add defaultSettings.js link

parent c471e6c3
...@@ -213,7 +213,18 @@ class SettingDrawer extends PureComponent { ...@@ -213,7 +213,18 @@ class SettingDrawer extends PureComponent {
<Alert <Alert
type="warning" type="warning"
className={styles.productionHint} className={styles.productionHint}
message={formatMessage({ id: 'app.setting.production.hint' })} message={
<div>
{formatMessage({ id: 'app.setting.production.hint' })}{' '}
<a
href="https://u.ant.design/pro-v2-default-settings"
target="_blank"
rel="noopener noreferrer"
>
src/defaultSettings.js
</a>
</div>
}
/> />
</div> </div>
</Drawer> </Drawer>
......
...@@ -70,6 +70,5 @@ ...@@ -70,6 +70,5 @@
.productionHint { .productionHint {
font-size: 12px; font-size: 12px;
color: @text-color-secondary;
margin-top: 16px; margin-top: 16px;
} }
...@@ -181,5 +181,5 @@ export default { ...@@ -181,5 +181,5 @@ export default {
'app.setting.copy': 'Copy Setting', 'app.setting.copy': 'Copy Setting',
'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js', 'app.setting.copyinfo': 'copy success,please replace defaultSettings in src/models/setting.js',
'app.setting.production.hint': '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',
}; };
...@@ -177,5 +177,5 @@ export default { ...@@ -177,5 +177,5 @@ export default {
'app.setting.copy': '拷贝设置', 'app.setting.copy': '拷贝设置',
'app.setting.copyinfo': '拷贝成功,请到 src/defaultSettings.js 中替换默认配置', 'app.setting.copyinfo': '拷贝成功,请到 src/defaultSettings.js 中替换默认配置',
'app.setting.production.hint': 'app.setting.production.hint':
'配置栏只在开发环境用于预览,请拷贝后手动修改 src/defaultSettings.js', '配置栏只在开发环境用于预览,生产环境不会展现,请拷贝后手动修改配置文件',
}; };
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment