【功能修复】App.vue 延迟 200 毫秒,避免 {errMsg: 'hideTabBar:fail not TabBar page'}(来自 cursor 修复建议)

pull/136/head
YunaiV 2025-01-19 08:25:15 +08:00
parent 11e83df02f
commit ea28ca6875
1 changed files with 7 additions and 9 deletions

14
App.vue
View File

@ -3,17 +3,15 @@
import { ShoproInit } from './sheep'; import { ShoproInit } from './sheep';
onLaunch(() => { onLaunch(() => {
// 使 //
uni.hideTabBar(); setTimeout(() => {
uni.hideTabBar();
}, 200);
// Shopro // Shopro
ShoproInit(); ShoproInit();
}); });
onError((err) => {
console.log('AppOnError:', err);
});
onShow((options) => { onShow((options) => {
// #ifdef APP-PLUS // #ifdef APP-PLUS
// urlSchemes // urlSchemes
@ -23,13 +21,13 @@
// //
uni.getClipboardData({ uni.getClipboardData({
success: (res) => { }, success: (res) => {},
}); });
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
// //
console.log(options,'options'); console.log(options, 'options');
// #endif // #endif
}); });
</script> </script>