38 lines
667 B
Vue
38 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>
|