提交 d06ae712 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

perf: getCurrentPages

上级 9731c20c
......@@ -4,7 +4,7 @@
<view class="uni-padding-wrap">
<button @click="_getCurrentPages">getCurrentPages</button>
<button class="uni-common-mt" @click="hideAndShow">页面隐藏并显示</button>
<view style="padding: 15px 0px">
<view v-if="pages.length" style="padding: 15px 0px">
<text>当前页面栈中 {{ pages.length }} 个页面,列表如下:</text>
<template v-for="(page, index) in pages" :key="page.route">
<text style="margin-top: 5px"
......@@ -15,7 +15,8 @@
</view>
</view>
</template>
<script>
<script lang="ts">
class Page {
constructor(public route : string) {
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册