diff --git a/src/router/router.js b/src/router/router.js index 5ca13eda5..c180dc6ee 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -494,7 +494,7 @@ // getFragment 得到的值是编码过的,而this.fragment是没有编码过的 // 英文路径没有问题,遇上中文和空格有问题了 current = decodeURIComponent(current); - } catch { + } catch(e) { } // If the user pressed the back button, the iframe's hash will have // changed and we should use that for comparison.