From 961dd72d7f17bc3b29c8058d5df9cf39d93186db Mon Sep 17 00:00:00 2001 From: airyland Date: Mon, 28 Aug 2017 09:37:09 +0800 Subject: [PATCH] try to avoid some webpack build issue --- src/libs/router.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/router.js b/src/libs/router.js index 561a1660b..dc50e398a 100755 --- a/src/libs/router.js +++ b/src/libs/router.js @@ -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);' }