setting.vue 893 Bytes
<template>
	<!-- 更多设置 -->
	<view class="setting">
		<!-- 退出登录 -->
		<view class="quit" @click="removeToken">
			退出登录
		</view>
		<u-toast ref="uToast" />
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			removeToken() {
				this.$store.dispatch("quit")
				this.$refs.uToast.show({
					title: '退出成功',
					type: 'success'
				})
				setTimeout(()=>{
					this.$Router.pushTab("/pages/my/my")
				},500)
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.setting {
		width: 750rpx;
		height: 100vh;
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: center;

		.quit {
			width: 400rpx;
			height: 70rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			border: 1px solid black;
		}
	}
</style>