You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
476 B
29 lines
476 B
<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>
|
|
|