This commit is contained in:
zoujiandong 2025-11-17 16:05:19 +08:00
commit 2cfc225b55

42
App.vue
View File

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