Bug 32030: Use Pinia for vendors 🍍
[srvgit] / koha-tmpl / intranet-tmpl / prog / js / vue / main-erm.ts
index 906e178..62b1e62 100644 (file)
@@ -1,5 +1,6 @@
 import { createApp } from "vue";
 import { createWebHistory, createRouter } from "vue-router";
+import { createPinia } from 'pinia'
 
 import { library } from "@fortawesome/fontawesome-svg-core";
 import { faPlus, faPencil, faTrash } from "@fortawesome/free-solid-svg-icons";
@@ -60,6 +61,7 @@ const routes = [
 const router = createRouter({ history: createWebHistory(), routes });
 
 createApp(App)
+    .use(createPinia())
     .use(router)
     .component("font-awesome-icon", FontAwesomeIcon)
-    .mount("#erm");
+    .mount("#erm");
\ No newline at end of file