You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
App.weapp.ts

useDidShow(() => { console.log("windowInfo", getWindowInfo(), getWindowInfo.toString()===getDeviceInfo.toString()) });业务组件:进vx小程序的第一个页面
useEffect(() => { ...... console.log("windowInfo login",getWindowInfo()) }, []);如图1在页面刚被启动时getWindowInfo函数都能正常获取窗口的参数,但是当第一个页面加载完成时getWindowInfo的函数指针就被重定向到Taro.getDeviceInfo();但是全局内没有任何操作去改变了getWindowInfo的这个函数的内容。有没有老师遇到过这样的情况,或者有没有参考的解决思路可以指教下
Beta Was this translation helpful? Give feedback.
All reactions