提交 a52794a5 编写于 作者: VK1688's avatar VK1688

【优化】u-tabbar 内部细节

上级 9d378760
......@@ -162,8 +162,10 @@ export default {
if (this.hideTabBar) uni.hideTabBar();
// 获取引入了u-tabbar页面的路由地址,该地址没有路径前面的"/"
let pages = getCurrentPages();
// 页面栈中的最后一个即为项为当前页面,route属性为页面路径
this.pageUrl = pages[pages.length - 1].route;
if (pages.length > 0) {
// 页面栈中的最后一个即为项为当前页面,route属性为页面路径
this.pageUrl = pages[pages.length - 1].route;
}
},
computed: {
valueCom() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册