From d4672581683bb35dea221e254a4d6276aa91ea33 Mon Sep 17 00:00:00 2001 From: Spark Date: Mon, 2 Aug 2021 15:44:01 +0900 Subject: [PATCH] =?UTF-8?q?usingaircon=20=EA=B8=B0=EB=8A=A5=20=EB=B3=B5?= =?UTF-8?q?=EA=B5=AC,=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=9B=B9=EC=82=AC?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20opn=3D>replace=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD,=20=EB=A1=9C=EC=BB=AC=EC=A1=B4=EC=9E=AC=EC=8B=9C=20?= =?UTF-8?q?=EC=B2=AB=EB=B3=80=EA=B2=BD=20cancel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/App.js | 4 +-- client/src/components/LoginComp.js | 13 ++++------ client/src/components/UsingAircon.js | 31 +++++++++--------------- client/src/pages/GetLocFirst.js | 24 +++++++++++++++--- server/src/controllers/userController.js | 12 ++++----- 5 files changed, 43 insertions(+), 41 deletions(-) diff --git a/client/src/App.js b/client/src/App.js index 974e125..84b9e7e 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -12,7 +12,7 @@ import GetLocFirst from './pages/GetLocFirst'; function App() { - + const isLs = localStorage.getItem('login') function loginDefault() { @@ -29,7 +29,7 @@ function App() { - + diff --git a/client/src/components/LoginComp.js b/client/src/components/LoginComp.js index 5e2e930..4b0b7e7 100644 --- a/client/src/components/LoginComp.js +++ b/client/src/components/LoginComp.js @@ -36,15 +36,12 @@ function LoginComp() { function addressUrl() { const afterAt = emailAddress.split('@')[1] - if (afterAt == ('naver.com' || 'gmail.com' || 'daum.net')) { + if (afterAt) { const newLink = 'https://www.' + afterAt; - window.open(newLink); + window.location.replace(newLink); } - if (afterAt == 'korea.ac.kr') { - window.open('https://www.gmail.com'); - } - else { - window.open(); + else if (afterAt == 'korea.ac.kr') { + window.location.replace('https://www.gmail.com'); } } @@ -97,7 +94,7 @@ function LoginComp() {
- +