vue中关于使用useStore 和直接使用导入store 在组件中可以直接使用过import {useStore} from 'vuex' 或者使用import store from '@/store' 如果不是在组件中就不能 使用import {useStore} from 'vuex'