UNPKG

@u3u/vue-hooks

Version:
13 lines (12 loc) 315 B
var runtime = {}; export function getRuntimeVM() { if (runtime.vm) return runtime.vm; throw new ReferenceError('[vue-hooks] Not found vue instance.'); } export function setRuntimeVM(vue) { var vm = this || vue; if (typeof vm.$options.setup === 'function') { runtime.vm = vm; } }