报错内容:
reportJSException >>>> exception function:createInstanceContext, exception:white screen cause create instanceContext failed,check js stack ->
 at useStore2 (app-service.js:1487:15)
 at  (app-service.js:1714:17)
 at  (app-service.js:8680:3)
截图:
 
问题解决:
 报错太不详细了,但可以看出是关于useStore,最开始我以为是pinia引入的问题
 后面挨着排查代码,发现是在接口封装里引入的store导致的报错
 
 把它放到方法定义里即可解决
 
其他参考:
 https://ask.dcloud.net.cn/question/165710



















