uni.switchTab({
url: '/pages/index/index',
success: () => {
var page = getCurrentPages()[0]
if (page == undefined || page == null) return;
page.$vm.coo(); // coo要调用的函数
}
})
08-04
6627
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
uni.switchTab({
url: '/pages/index/index',
success: () => {
var page = getCurrentPages()[0]
if (page == undefined || page == null) return;
page.$vm.coo(); // coo要调用的函数
}
})