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) {
|
||||
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'
|
||||
)
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user