|
@@ -2,6 +2,9 @@ import './index.less'
|
|
|
import React, { useState } from "react";
|
|
|
export const PdfImages: React.FC = (props: any) => {
|
|
|
document.title = '电子资料'
|
|
|
+ // document.oncontextmenu=function(){
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
let [pdfJson] = useState({
|
|
|
"item": [
|
|
|
{
|
|
@@ -521,12 +524,18 @@ export const PdfImages: React.FC = (props: any) => {
|
|
|
})
|
|
|
return (
|
|
|
<div>
|
|
|
- {pdfJson.item.map((item,index) => {
|
|
|
+ {pdfJson.item.map((item, index) => {
|
|
|
return <img style={
|
|
|
{
|
|
|
- width:'100%'
|
|
|
+ width: '100%',
|
|
|
+ pointerEvents: "none"
|
|
|
}
|
|
|
- } key={index} src={item.url} />
|
|
|
+ } key={index} onContextMenu={
|
|
|
+ () => {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+
|
|
|
+ } src={item.url} />
|
|
|
})
|
|
|
|
|
|
}
|