修改问题

This commit is contained in:
duan
2024-12-31 17:41:32 +08:00
parent 3b3e167089
commit 8e5065a588
22 changed files with 47 additions and 49 deletions

View File

@@ -251,9 +251,9 @@
const pages = getCurrentPages()
if (pages && pages.length > 0) {
const firstPage = pages[0]
if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index/index')) {
if (pages.length == 1 && (!firstPage.route || firstPage.route != 'pages/index/index2')) {
uni.reLaunch({
url: '/pages/index/index'
url: '/pages/index/index2'
})
} else {
uni.navigateBack({
@@ -262,7 +262,7 @@
}
} else {
uni.reLaunch({
url: '/pages/index/index'
url: '/pages/index/index2'
})
}
}