From 4bd71f2795b5614ca5e93fab4ca2dce4ccaecdc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?junh=5Feee=28=EC=9D=B4=EC=A4=80=ED=9D=AC=29?= Date: Wed, 16 Nov 2022 15:57:58 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9A=B4=EC=98=81=20console=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 2 +- src/components/map/naver/dron/DronMarker.js | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/App.js b/src/App.js index 2cb77b27..535ee4cd 100644 --- a/src/App.js +++ b/src/App.js @@ -1,6 +1,6 @@ // ** Router Import import Router from './router/Router'; -// if (process.env.NODE_ENV === 'production') console.log = function () {}; +if (process.env.NODE_ENV === 'production') console.log = function () {}; const App = props => ; export default App; diff --git a/src/components/map/naver/dron/DronMarker.js b/src/components/map/naver/dron/DronMarker.js index 516a10dd..212b44d3 100644 --- a/src/components/map/naver/dron/DronMarker.js +++ b/src/components/map/naver/dron/DronMarker.js @@ -133,28 +133,21 @@ export const DronMarker = props => { //마커를 그린다. const addMarkers = (position, id, controlId, gps) => { const markerOption = {}; - console.log(gps, 'gps'); - console.log(id, 'idntfNum'); if (id.substring(0, 2) === 'PA') { const pal = controlGroupAuthInfo?.find( prev => prev.idntfNum === gps.objectId ); - console.log(pal, '등록된 식별장치'); if (pal) { - console.log('맞음'); markerOption.url = DronIcon; markerOption.type = 'DRONE'; } else { - console.log('아님'); if (user.authId === 'SUPER' || user.authId === 'ADMIN') { console.log('super, admin'); markerOption.url = FlightIcon; markerOption.type = 'FLIGHT'; } else { - console.log('user'); const terminal = joinList?.find(prev => prev.trmnlId === gps.trmnlId); - console.log(terminal, 'trmnlId 일치 있음'); if ( terminal?.groupAuthCd === 'MASTER' || terminal?.groupAuthCd === 'LEADER'