<template>
	<view>
		<mescroll-empty :option="option" @emptyclick="$navigateTo('/pages/login/login')" :key="reloadMecroll">
		</mescroll-empty>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				option: {
					tip: '暂无数据'
				},
				reloadMecroll: false
			}
		},
		onShow() {
			if (!uni.getStorageSync('token')) {
				this.option = {
					tip: '暂未登录',
					btnText: '点击登录'
				}
			} else {
				this.option = {
					tip: '暂无数据'
				}
			}
			this.reloadMecroll = !this.reloadMecroll;
		},
		methods: {

		}
	}
</script>

<style>

</style>