oxen-electron-gui-wallet/src/router/index.js

27 lines
614 B
JavaScript
Raw Normal View History

2020-03-03 04:16:23 +01:00
import Vue from "vue";
import VueRouter from "vue-router";
2018-09-08 23:44:19 +02:00
2020-03-03 04:16:23 +01:00
import routes from "./routes";
2018-09-08 23:44:19 +02:00
2020-03-03 04:16:23 +01:00
Vue.use(VueRouter);
2018-09-08 23:44:19 +02:00
const Router = new VueRouter({
2020-03-03 04:16:23 +01:00
/*
* NOTE! Change Vue Router mode from quasar.conf.js -> build -> vueRouterMode
*
* When going with "history" mode, please also make sure "build.publicPath"
* is set to something other than an empty string.
* Example: "/" instead of ""
*/
2018-09-08 23:44:19 +02:00
2020-03-03 04:16:23 +01:00
// Leave as is and change from quasar.conf.js instead!
mode: process.env.VUE_ROUTER_MODE,
base: process.env.VUE_ROUTER_BASE,
scrollBehavior: () => ({
y: 0
}),
routes
});
2018-09-08 23:44:19 +02:00
2020-03-03 04:16:23 +01:00
export default Router;