vue3 在js中使用store
import {useStore} from 'vuex'
const store = useStore()
vue2在js中使用store
this.$store
vue在模板中使用 $store
vue3 在js中使用route
import { useRoute } from 'vue-router'
cons troute = useRoute()
vue2在js中使用route
this.$route
vue在模板中使用 $rotue