fix: sync iframe router

This commit is contained in:
chenjiahan
2020-07-04 21:48:53 +08:00
parent 59f9b851d6
commit 2d63b9c8b5
3 changed files with 535 additions and 535 deletions

View File

@@ -23,7 +23,7 @@ window.syncPath = function() {
window.replacePath = function(path = '') {
// should preserve hash for anchor
if (window.vueRouter.currentRoute.path !== path) {
if (window.vueRouter.currentRoute.value.path !== path) {
window.vueRouter.replace(path).catch(() => {});
}
};