diff --git a/src/router.js b/src/router.js
index <HASH>..<HASH> 100644
--- a/src/router.js
+++ b/src/router.js
@@ -1,6 +1,6 @@
 import { parse } from 'url'
 import wechat from './wechat'
-import { encode } from './utils'
+import { encode, globals } from './utils'
 
 class Router {
   _tabs = []
@@ -53,7 +53,7 @@ export default function createRouterMixin (config) {
       if (this && this.route) {
         return this.route
       }
-      let pages = getCurrentPages()
+      let pages = globals.getCurrentPages()
       if (pages) {
         let last = pages[pages.length - 1]
         if (last && last.route) {
diff --git a/src/utils.js b/src/utils.js
index <HASH>..<HASH> 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -7,6 +7,7 @@ const commaRE = /%2C/g
 export const globals = {
   global: this || global,
   wx,
+  getCurrentPages,
 }
 
 export function parseTabsFromGlobal (global) {
refactor: get `getCurrentPages` from globals container