Skip to content

Commit

Permalink
Tabbar: Fix undefined go function. close #295
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Jun 23, 2016
1 parent f7bbd14 commit 60c558c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/router.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export function go (url, $router) {
if (/^javas/.test(url) || !url) return
const useRouter = typeof url === 'object' || (typeof url === 'string' && !/http/.test(url))
const useRouter = typeof url === 'object' || ($router && typeof url === 'string' && !/http/.test(url))
if (useRouter) {
$router.go(url)
} else {
Expand Down

0 comments on commit 60c558c

Please sign in to comment.