会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
深海里的星星i
博客园
首页
新随笔
联系
管理
2024年5月9日
"getActivePinia()" was called but there was no active Pinia. Are you trying to use a store before calling "app.use(pinia)"?
摘要: 使用pinia时候遇到的问题 使用pinia store必须在 组件的 setup 里面 vue-router路由文件需要在路由钩子里面用 报错之前代码-- 把 const userStore = useUserStore() 放在了 router.beforeEach((to, from, nex
阅读全文
posted @ 2024-05-09 10:09 深海里的星星i
阅读(2390)
评论(0)
推荐(0)
公告