<template>
	<view>
		<button @click="onLogout()">退出登录</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			onLogout(){
				this.$store.commit('setToken', '');
				this.$Router.replaceAll({
				    name: 'Auth'
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
