From c5226fec07e9643d119e3ca66278e561e4691e79 Mon Sep 17 00:00:00 2001 From: Julian Krauser Date: Sun, 25 Aug 2024 10:10:31 +0200 Subject: [PATCH] refactor main --- src/main.ts | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/main.ts b/src/main.ts index d72c1dc..341b931 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,14 +1,13 @@ -import './main.css' +import { createApp } from "vue"; +import { createPinia } from "pinia"; -import { createApp } from 'vue' -import { createPinia } from 'pinia' +import App from "./App.vue"; +import router from "./router"; +import "./main.css"; -import App from './App.vue' -import router from './router' +const app = createApp(App); -const app = createApp(App) +app.use(createPinia()); +app.use(router); -app.use(createPinia()) -app.use(router) - -app.mount('#app') +app.mount("#app");