debug: 添加goTo日志
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-04-02 13:18:32 +00:00
parent 1c422f5436
commit ecaf09a33d

View File

@@ -145,7 +145,14 @@ export default {
else this.greeting = '晚上好' else this.greeting = '晚上好'
}, },
goTo(url) { goTo(url) {
uni.navigateTo({ url }) console.log('goTo called:', url)
uni.navigateTo({
url,
fail: (err) => {
console.error('navigateTo fail:', err)
uni.showToast({ title: '跳转失败: ' + err.errMsg, icon: 'none' })
}
})
}, },
goToTab(url) { goToTab(url) {
uni.switchTab({ url }) uni.switchTab({ url })