diff --git a/riis-web/src/components/IntelligentPoint/point.vue b/riis-web/src/components/IntelligentPoint/point.vue index 4311379..41cd8ee 100644 --- a/riis-web/src/components/IntelligentPoint/point.vue +++ b/riis-web/src/components/IntelligentPoint/point.vue @@ -65,6 +65,7 @@ const loadImages = async () => { await new Promise((resolve) => { mainImg.src = props.mainImage; mainImg.onload = resolve; + mainImg.crossOrigin = "anonymous"; }); overlays.value = await Promise.all( @@ -73,6 +74,7 @@ const loadImages = async () => { await new Promise((resolve) => { img.src = config.url; img.onload = resolve; + img.crossOrigin = "anonymous"; }); return { id: config.id, diff --git a/riis-web/src/views/collectmonitor/intelligentcontrol/index.vue b/riis-web/src/views/collectmonitor/intelligentcontrol/index.vue index b3b82c1..5265d81 100644 --- a/riis-web/src/views/collectmonitor/intelligentcontrol/index.vue +++ b/riis-web/src/views/collectmonitor/intelligentcontrol/index.vue @@ -133,7 +133,8 @@ function openchange(row: any) { let params = { systemcode: row.systemcode, signalId: row.signalId, - type: row.deviceType, + deviceType:row.deviceType, + type:'yk', value: row.yxValue, } sendCommand(params).then((res: any) => { @@ -202,7 +203,7 @@ onMounted(() => {