Commit 983d737f authored by 陈帅's avatar 陈帅

Improve copy success tips

parent d68666fe
...@@ -208,7 +208,11 @@ class SettingDarwer extends PureComponent { ...@@ -208,7 +208,11 @@ class SettingDarwer extends PureComponent {
<Divider /> <Divider />
<CopyToClipboard <CopyToClipboard
text={JSON.stringify(setting)} text={JSON.stringify(setting)}
onCopy={() => message.success('copy success')} onCopy={() =>
message.success(
'copy success,please replace defaultSetting in src/models/setting.js'
)
}
> >
<Button <Button
style={{ style={{
...@@ -216,7 +220,7 @@ class SettingDarwer extends PureComponent { ...@@ -216,7 +220,7 @@ class SettingDarwer extends PureComponent {
}} }}
> >
<Icon type="copy" /> <Icon type="copy" />
拷贝代码 拷贝配置
</Button> </Button>
</CopyToClipboard> </CopyToClipboard>
</div> </div>
......
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