This commit is contained in:
haomingming 2025-11-17 15:25:42 +08:00
parent 8d9ad1ca51
commit 589092ec62

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);