aboutsummaryrefslogtreecommitdiffstats
path: root/src/router/index.js
diff options
context:
space:
mode:
authorArne Schauf <git@asw.io>2018-03-03 01:06:44 +0100
committerArne Schauf <git@asw.io>2018-03-03 01:08:55 +0100
commit8769fc4dc19447f67a42eb941fb43ba7223772eb (patch)
tree0a73daee2ede4cc1cdf515559429c9ba9fcc211c /src/router/index.js
downloadparry-ui-8769fc4dc19447f67a42eb941fb43ba7223772eb.tar.gz
parry-ui-8769fc4dc19447f67a42eb941fb43ba7223772eb.zip
upgrade quasar to latest version
Diffstat (limited to 'src/router/index.js')
-rw-r--r--src/router/index.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/router/index.js b/src/router/index.js
new file mode 100644
index 0000000..d9fe66a
--- /dev/null
+++ b/src/router/index.js
@@ -0,0 +1,24 @@
+import Vue from 'vue'
+import VueRouter from 'vue-router'
+
+import routes from './routes'
+
+Vue.use(VueRouter)
+
+const Router = new VueRouter({
+ /*
+ * NOTE! Change Vue Router mode from quasar.conf.js -> build -> vueRouterMode
+ *
+ * If you decide to go with "history" mode, please also set "build.publicPath"
+ * to something other than an empty string.
+ * Example: '/' instead of ''
+ */
+
+ // 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
+})
+
+export default Router