22 lines
627 B
JavaScript
22 lines
627 B
JavaScript
import { createApp } from 'vue';
|
|
import { createWebHashHistory, createRouter } from 'vue-router';
|
|
import App from './App.vue';
|
|
import 'windi.css';
|
|
import 'toastify-js/src/toastify.css';
|
|
|
|
// ---------------
|
|
const Home = import('./components/Home.vue');
|
|
const Register = import('./components/Register.vue');
|
|
const Profile = import('./components/Profile.vue');
|
|
//
|
|
const router = createRouter({
|
|
history: createWebHashHistory(),
|
|
routes: [
|
|
{ path: '/', component: Home },
|
|
{ path: '/register', component: Register },
|
|
{ path: '/profile', component: Profile }
|
|
]
|
|
});
|
|
// ---------------
|
|
createApp(App).use(router).mount('#app');
|