位置:- 正文

小程序 getActivePinia was called with no active Pinia. Did you forget to install pinia?(小程序开发一个多少钱啊)

编辑:rootadmin
小程序 getActivePinia was called with no active Pinia. Did you forget to install pinia?

推荐整理分享小程序 getActivePinia was called with no active Pinia. Did you forget to install pinia?(小程序开发一个多少钱啊),希望有所帮助,仅作参考,欢迎阅读内容。

小程序 getActivePinia was called with no active Pinia. Did you forget to install pinia?(小程序开发一个多少钱啊)

文章相关热门搜索词:小程序在线制作,小程序开发费用明细,小程序制作,小程序开发费用,小程序开发费用明细,小程序怎么开发自己的小程序,小程序开发,小程序怎么开发自己的小程序,内容如对您有帮助,希望把文章链接给更多的朋友!

小程序项目使用pinia做状态管理报错: Error: [🍍]: getActivePinia was called with no active Pinia. Did you forget to install pinia? const pinia = createPinia() app.use(pinia) app运行打包时有个同样的错误 错误原因是:在外部js/ts中使用时 pinia还没有完成初始化 例如

// login.ts文件中import { storeToRefs } from "pinia";import useUserStore from "@/store/user";const { user, userState } = storeToRefs(useUserStore());

在外部js/ts中导入useUserStore 后立马

本文链接地址:https://www.jiuchutong.com/zhishi/292982.html 转载请保留说明!
下一篇链接:https://www.jiuchutong.com/zhishi/292983.html
免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

鄂ICP备2023003026号

友情链接: 武汉网站建设 电脑维修 湖南楚通运网络