跳到主要内容

FAQ

getCurrentInstance query is incorrect​

When you are using tarojs to develop your mini program, sometimes query is incorrect with the api getCurrentInstance. Make sure the getCurrentInstance is inside the useDidShow hook

useDidShow(() => {
const query = getCurrentInstance().router.params
})