fix: currentRoute
This commit is contained in:
@@ -7,7 +7,7 @@ import { iframeReady, isMobile } from '.';
|
||||
window.syncPath = function() {
|
||||
const router = window.vueRouter;
|
||||
const isInIframe = window !== window.top;
|
||||
const currentDir = router.history.current.path;
|
||||
const currentDir = router.currentRoute.value.path;
|
||||
|
||||
if (isInIframe) {
|
||||
window.top.replacePath(currentDir);
|
||||
|
||||
Reference in New Issue
Block a user