Commit 58aaa9c9 authored by Phil Hughes's avatar Phil Hughes Committed by Kushal Pandya

Removed the use of underscore from router

parent e9f6edda
import $ from 'jquery'; import $ from 'jquery';
import _ from 'underscore';
import Vue from 'vue'; import Vue from 'vue';
import VueRouter from 'vue-router'; import VueRouter from 'vue-router';
import Home from './pages/index.vue'; import Home from './pages/index.vue';
...@@ -42,7 +41,9 @@ export default function createRouter(base) { ...@@ -42,7 +41,9 @@ export default function createRouter(base) {
from, from,
next, next,
) { ) {
if (_.isString(id)) next(); if (typeof id === 'string') {
next();
}
}, },
props: ({ params: { id } }) => ({ id }), props: ({ params: { id } }) => ({ id }),
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment