刚用vue create vue3demo getCurrentInstance()里咋没$store? bug吗?
main.js
import { createApp } from 'vue’
import App from './App.vue’
import router from './router’
import store from ‘./store’
createApp(App).use(store).use(router).mount(’#app’)
App.vue 里打印 console.log(‘ctx=>’, ctx) // 获取不到$store $router也没 感觉是bug
你可以装一个看下(我的node最新版)