2023-12-8

This commit is contained in:
2023-12-08 18:33:48 +08:00
parent 615911b6ee
commit b84753c252
6 changed files with 46 additions and 21 deletions

View File

@@ -165,7 +165,21 @@
") 0.75%,rgba(255,177,118," + x + ") 99.78%)"
},
clickIcon() {
uni.navigateBack()
// uni.navigateBack()
const pages = getCurrentPages()
// 有可返回的页面则直接返回uni.navigateBack 默认返回失败之后会自动刷新页面 ,无法继续返回
if (pages.length > 1) {
uni.navigateBack(1)
return;
}else{
uni.switchTab({
url: '/pages/card/card'
})
}
return;
}
}
}