seepur/resources/scripts/applications/home/router/router.vue
2020-03-17 18:16:34 -04:00

42 lines
722 B
Vue

<script lang="ts">
import Vue from "vue";
import VueRouter, {
RouteConfig,
RouterOptions,
RouterMode,
NavigationGuard
} from "vue-router";
Vue.use(VueRouter);
// Views
import Home from "../views/home.vue";
import Settings from "../views/settings.vue";
import Applications from "../views/application.vue";
const routes: RouteConfig[] = [
/** Define Application Routes */
{
path: "/",
component: Home,
name: "root"
},
{
path: "/settings",
component: Settings
},
{
path: "/applications",
component: Applications
},
{
path: "*",
redirect: { name: "root" }
}
];
const AppRouter = new VueRouter({ routes, mode: "history" });
export default AppRouter;
</script>