摘要: 使用pinia时候遇到的问题 使用pinia store必须在 组件的 setup 里面 vue-router路由文件需要在路由钩子里面用 报错之前代码-- 把 const userStore = useUserStore() 放在了 router.beforeEach((to, from, nex 阅读全文
posted @ 2024-05-09 10:09 深海里的星星i 阅读(2390) 评论(0) 推荐(0)