✨ Adds playground
This commit is contained in:
20
src/main.ts
20
src/main.ts
@@ -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");
|
||||
|
Reference in New Issue
Block a user