fixed routing issue on logout
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
import { createApp } from 'vue'
|
||||
import { createI18n } from "vue-i18n";
|
||||
import { createPinia } from 'pinia'
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import { router } from './router.js'
|
||||
import App from './App.vue'
|
||||
import BooksBrowser from './BooksBrowser.vue'
|
||||
import AddBook from './AddBook.vue'
|
||||
import SignUp from './SignUp.vue'
|
||||
import LogIn from './LogIn.vue'
|
||||
import Home from './Home.vue'
|
||||
|
||||
import fr from './locales/fr.json';
|
||||
import en from './locales/en.json';
|
||||
@@ -21,19 +16,6 @@ const i18n = createI18n({
|
||||
});
|
||||
|
||||
|
||||
const routes = [
|
||||
{ path: '/', component: Home },
|
||||
{ path: '/books', component: BooksBrowser },
|
||||
{ path: '/add', component: AddBook },
|
||||
{ path: '/signup', component: SignUp },
|
||||
{ path: '/login', component: LogIn },
|
||||
]
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
const pinia = createPinia()
|
||||
|
||||
createApp(App).use(i18n).use(pinia).use(router).mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user