<template>
	<view :className="className">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		name: "Page",
		props: {
			className: {
				type: String || Array,
				default: ''
			},
		},
		mounted() {
			const pages = getCurrentPages();
			const len = pages.length
			let curPage = pages[len - 1];
			
			console.log(`当前页面路由：`+curPage.route);
			console.log(`当前页面路由栈层数：`+len);
		}
	}
</script>

<style lang="scss">

</style>
