UNPKG

@u3u/vue-hooks

Version:
8 lines (7 loc) 243 B
import { computed } from '@vue/composition-api'; import { getRuntimeVM } from './util/runtime'; export default function useStore() { var vm = getRuntimeVM(); var store = computed(function () { return vm.$store; }); return store; }