feat: switching from auto-route to manual route definitions
This commit is contained in:
parent
2d477af634
commit
4d79ab6cf0
5 changed files with 35 additions and 10 deletions
|
|
@ -1,10 +1,7 @@
|
|||
import { createApp } from "vue";
|
||||
import "./style.css";
|
||||
import App from "./App.vue";
|
||||
import { createRouter, createWebHistory } from "vue-router";
|
||||
import { routes } from "vue-router/auto-routes";
|
||||
|
||||
const router = createRouter({ history: createWebHistory(), routes: routes });
|
||||
import router from "./routes"
|
||||
import i18n from './i18n'
|
||||
|
||||
createApp(App).use(i18n).use(router).mount("#app");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue