You should call vue.use() before vue object initialization (before calling new Vue({})), not after, and call it like static method, not instance method. For example:
import Vue from 'vue';
import App from "./App";
import * as VueWindow from '@hscmap/vue-window'
Vue.use(VueWindow);
let vue = new Vue({
el: '#app',
template: '<App></App>',
render: h => h(App)
})
export {vue};
import Vue from 'vue';
import App from "./App";
import * as VueWindow from '@hscmap/vue-window'
Vue.use(VueWindow);
let vue = new Vue({
el: '#app',
template: '<App></App>',
render: h => h(App)
})
export {vue};
Комментариев нет:
Отправить комментарий