首页 > TAG信息列表 > useMainStore
getActivePinia was called with no active Pinia. Did you forget to install pinia
不要在permission.js文件里 import {useMainStore} from "@/store/main";后直接const storeMain = useMainStore() 要在beforeEach 再去执行不然由于 permission.js加载的时候就会执行useMainStore()这个时候main.js中的 createPinia()还没被全局加载进入