Adds playground

This commit is contained in:
Daniel Svitan
2024-03-04 21:44:09 +01:00
parent 180faecddf
commit 39b3d2711c
8 changed files with 169 additions and 56 deletions

View File

@@ -1,5 +1,19 @@
import { createApp } from "vue";
import App from "./App.vue";
import { createApp } from "vue/dist/vue.esm-bundler";
import Home from "./pages/Home.vue";
import * as VueRouter from "vue-router";
import Playground from "./pages/Playground.vue";
import "./index.css";
createApp(App).mount("#app");
const routes = [
{ path: "/", component: Home },
{ path: "/playground", component: Playground },
];
const router = VueRouter.createRouter({
history: VueRouter.createWebHistory(),
routes: routes,
});
const app = createApp({});
app.use(router);
app.mount("#app");