[+] Encapsulate clearCookies()
This commit is contained in:
@@ -120,4 +120,12 @@ export default class Login extends Vue
|
|||||||
{
|
{
|
||||||
this.onLoginClick();
|
this.onLoginClick();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear cookies
|
||||||
|
*/
|
||||||
|
clearCookies()
|
||||||
|
{
|
||||||
|
this.$cookies.keys().forEach(key => this.$cookies.remove(key));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user