Commit ade2fe9b authored by chenqikuai's avatar chenqikuai

fix:修复退出

parent ded83136
......@@ -28,10 +28,13 @@ export default Vue.extend({
},
methods:{
toggleDialog(){
console.log(111);
this.$dialog.alert({
message: 'Content',
message: '确定要退出登录吗',
}).then(()=>{
localStorage.clear();
this.$router.push({
name: 'Login'
})
});
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment