From 87bda5915038518f5bc835664d681f8db0c30b1b Mon Sep 17 00:00:00 2001 From: Anatoly Date: Thu, 3 Jun 2021 22:49:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20history=20=D0=BF=D1=80=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D1=85=D0=BE=D0=B4=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 10 +++++++++- frontend/src/components/Login.vue | 2 ++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 5bbc0f9..7f0766f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -34,12 +34,20 @@ export default { auth(image) { if (image) { this.loggedin = true - this.image = image + this.image = image + history.pushState( + {}, + 'logged in' + ) } }, logout() { axios.post('http://127.0.0.1:3000/api/logout').then(() => { this.loggedin = false + history.pushState( + {}, + 'logged out' + ) }); } } diff --git a/frontend/src/components/Login.vue b/frontend/src/components/Login.vue index 26762a2..0bab43a 100644 --- a/frontend/src/components/Login.vue +++ b/frontend/src/components/Login.vue @@ -6,6 +6,7 @@ v-model="email" placeholder="E-mail" autocomplete="email" + type="email" left-icon-name="email" class="maz-mb-2" :color=validateEmail() @@ -19,6 +20,7 @@ v-model="phone" default-country-code="RU" no-country-selector + type="tel" autocomplete="tel" class="maz-mb-2" left-icon-name="phone"