Skip to content
Snippets Groups Projects
Commit 954c2e45 authored by Julian's avatar Julian
Browse files

Fix plugin

parent add448bd
No related branches found
No related tags found
1 merge request!2Resolve "Implement basic functionality"
import plugin from "../../src/index.js"
export default ({
Vue, // the version of Vue being used in the VuePress app
options, // the options for the root Vue instance
router, // the router instance for the app
siteData, // site metadata
isServer // is this enhancement applied in server-rendering or client
}) => {
Vue.use(plugin);
}
import Vue from "vue";
import App from "./App.vue";
import plugin from "../../src/index.js";
import "./assets/main.css";
Vue.use(plugin);
new Vue({
render: (h) => h(App),
}).$mount("#app");
......@@ -7,10 +7,8 @@ Vue.use(VueInteractJs);
const plugin = {
install(Vue) {
for (const prop in components) {
if (components.hasOwn(prop)) {
const component = components[prop];
Vue.component(component.name, component);
}
const component = components[prop];
Vue.component(component.name, component);
}
},
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment