|
@@ -14,7 +14,15 @@ class DetailsModal extends Component {
|
|
|
this.hideTips = this.hideTips.bind(this)
|
|
|
}
|
|
|
componentDidMount(){
|
|
|
- dragBox('detailsContentWrap','detailsContentTitle','add')
|
|
|
+ dragBox('detailsContentWrap','detailsContentTitle','add');
|
|
|
+ setTimeout(()=>{ //禁止图片复制
|
|
|
+ $("#detailsContentWrap img").bind("contextmenu",()=>{
|
|
|
+ return false;
|
|
|
+ });
|
|
|
+ })
|
|
|
+ }
|
|
|
+ componentWillUnmount(){
|
|
|
+ $("#detailsContentWrap img").unbind("contextmenu");
|
|
|
}
|
|
|
hideTips() {
|
|
|
const { hideTips } = this.props;
|