//登录localStorage存储数据
if(window.localStorage){
const tokenString = JSON.stringify(this.hwdToken)
window.localStorage.setItem('hwdtoken',tokenString);
Toast({
message: '登录成功!',
position: 'middle',
duration: 2000
});
setTimeout(()=>{
this.$router.replace({name:'myModule'})
},2000);
}
//退出系统
logoutAction:function(){
window.localStorage.removeItem('hwdtoken');
this.$router.push({
name:'homeModule',
replace:false
})
},