我用的是第二种解决方案
import {useUserStore} from '@/store/index'
import { createPinia } from 'pinia'
let userStore = useUserStore(createPinia());
我用的是第二种解决方案
import {useUserStore} from '@/store/index'
import { createPinia } from 'pinia'
let userStore = useUserStore(createPinia());