Skip to content

Commit

Permalink
try to avoid some webpack build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
airyland committed Aug 28, 2017
1 parent 0360777 commit 961dd72
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
Expand Up @@ -15,7 +15,7 @@ export function go (url, $router) {
export function getUrl (url, $router) {
// Make sure the href is right in hash mode
if ($router && !$router._history && typeof url === 'string' && !/http/.test(url)) {
return `#!${url}`
return '#!' + url
}
return url && typeof url !== 'object' ? url : 'javascript:void(0);'
}

0 comments on commit 961dd72

Please sign in to comment.