Compare commits

...

2 Commits

Author SHA1 Message Date
haomingming
9e0a5d2512 Merge branch 'master' of https://gitea.igandanyiyuan.com/gdxz/uniapp-app 2025-11-17 15:25:52 +08:00
haomingming
589092ec62 333 2025-11-17 15:25:42 +08:00

42
App.vue
View File

@ -79,27 +79,27 @@
} }
}) })
setTimeout(function(){ // setTimeout(function(){
console.log("执行 setTimeout") // console.log(" setTimeout")
if(!checkTokenCallBackFlag){ // if(!checkTokenCallBackFlag){
uni.showModal({ // uni.showModal({
title: '提示', // title: '',
showCancel: false, // showCancel: false,
content: '您已退出登录', // content: '退',
success: function (res) { // success: function (res) {
if (res.confirm) { // if (res.confirm) {
uni.sendNativeEvent('goTabbarPage', { // uni.sendNativeEvent('goTabbarPage', {
msg: 'home' // msg: 'home'
}, ret => { // }, ret => {
console.log(ret); // console.log(ret);
}) // })
} else if (res.cancel) { // } else if (res.cancel) {
console.log('用户点击取消'); // console.log('');
} // }
} // }
}); // });
} // }
}, 1000) // }, 1000)
uni.onNativeEventReceive((event, data) => { uni.onNativeEventReceive((event, data) => {
console.log("event", event); console.log("event", event);