mirror of
https://github.com/anatolykopyl/registration.git
synced 2026-03-26 12:55:25 +00:00
Обновление history при переходе
This commit is contained in:
@@ -34,12 +34,20 @@ export default {
|
|||||||
auth(image) {
|
auth(image) {
|
||||||
if (image) {
|
if (image) {
|
||||||
this.loggedin = true
|
this.loggedin = true
|
||||||
this.image = image
|
this.image = image
|
||||||
|
history.pushState(
|
||||||
|
{},
|
||||||
|
'logged in'
|
||||||
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
logout() {
|
logout() {
|
||||||
axios.post('http://127.0.0.1:3000/api/logout').then(() => {
|
axios.post('http://127.0.0.1:3000/api/logout').then(() => {
|
||||||
this.loggedin = false
|
this.loggedin = false
|
||||||
|
history.pushState(
|
||||||
|
{},
|
||||||
|
'logged out'
|
||||||
|
)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
v-model="email"
|
v-model="email"
|
||||||
placeholder="E-mail"
|
placeholder="E-mail"
|
||||||
autocomplete="email"
|
autocomplete="email"
|
||||||
|
type="email"
|
||||||
left-icon-name="email"
|
left-icon-name="email"
|
||||||
class="maz-mb-2"
|
class="maz-mb-2"
|
||||||
:color=validateEmail()
|
:color=validateEmail()
|
||||||
@@ -19,6 +20,7 @@
|
|||||||
v-model="phone"
|
v-model="phone"
|
||||||
default-country-code="RU"
|
default-country-code="RU"
|
||||||
no-country-selector
|
no-country-selector
|
||||||
|
type="tel"
|
||||||
autocomplete="tel"
|
autocomplete="tel"
|
||||||
class="maz-mb-2"
|
class="maz-mb-2"
|
||||||
left-icon-name="phone"
|
left-icon-name="phone"
|
||||||
|
|||||||
Reference in New Issue
Block a user