seepur/resources/scripts/applications/home/router/router.vue
2020-02-02 17:42:18 -05:00

37 lines
667 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
}
];
const AppRouter = new VueRouter({ routes, mode: "history" });
export default AppRouter;
</script>