vue3在单独的js文件中使用pinia报错:getActivePinia was called with...
1、之前在main.js中使用方式是: import { createPinia } from 'pinia' const pinia = createPinia(); app.use(pinia); 2、现在的问题是我要再建一个js文件,需要用到我建的pinia的store,然后报错:getActivePinia was called with no active Pinia. Did you forget to install pinia? 问题就是要重新在这个...