uniapp 运行安卓报错reportJSException >>>> exception function:createInstanceContext, exception:white screen
遇到这个坑如果最开始没发现,一般在小程序h5上都正常,最后发开完成后才运行在手机上报这个错,如果项目大,找到你怀疑人生


如果方法是异步的
const userInfoStore = useUserInfoStore()
这个一定要放在方法里面声明 ,不然运行或者打包app出来就不行 ,主要他也不报哪里的错
不能这样声明
import useUserInfoStore from '@/store/userInfo'
const userInfoStore = useUserInfoStore()
export async function realName_payment(ispayment) {
let res = await master_aduitUserStatus()
}