mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 03:44:48 +00:00
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