Commit 49bad2cc by FE

console to alter

parent 5061eff4
...@@ -404,23 +404,23 @@ class RedPacket extends PureComponent { ...@@ -404,23 +404,23 @@ class RedPacket extends PureComponent {
type: 1 type: 1
}) })
copy(data.command).then(() => { copy(data.command).then(() => {
console.log('copy success'); alert('copy success');
this.setState({ this.setState({
isCopy: true isCopy: true
}); });
}).catch(() => { }).catch(() => {
console.log('建议您使用 Chrome, Firefox, Edge, Safari, IE11 等现代浏览器~'); alert('建议您使用 Chrome, Firefox, Edge, Safari, IE11 等现代浏览器~');
}); });
} }
}); });
}else { }else {
copy(command).then(() => { copy(command).then(() => {
console.log('copy success'); alert('copy success');
this.setState({ this.setState({
isCopy: true isCopy: true
}); });
}).catch(() => { }).catch(() => {
console.log('建议您使用 Chrome, Firefox, Edge, Safari, IE11 等现代浏览器~'); alert('建议您使用 Chrome, Firefox, Edge, Safari, IE11 等现代浏览器~');
}); });
} }
......
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