咱们言简意赅行吗
logout() {
var storage = window.localStorage;
storage.clear();
this.$router.push(`/login?redirect=${this.$route.fullPath}`); //跳回登录地址
}
版权声明:本文为weixin_40571965原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
咱们言简意赅行吗
logout() {
var storage = window.localStorage;
storage.clear();
this.$router.push(`/login?redirect=${this.$route.fullPath}`); //跳回登录地址
}