Przeglądaj źródła

Merge branch 'dev/v1.2.12_yf' of jianyu/jy-docs into feature/v1.2.12

yangfeng 1 rok temu
rodzic
commit
3238b7f077
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      jydocs-mobile/src/router/index.ts

+ 3 - 3
jydocs-mobile/src/router/index.ts

@@ -8,9 +8,9 @@ if (process.env.NODE_DEV !== 'production') {
   Vue.use(VueRouter)
 }
 
-const originalReplace = VueRouter.prototype.replace
-VueRouter.prototype.replace = function replace(location) {
-  return originalReplace.call(this, location).catch(err => err)
+const originalReplace: any = VueRouter.prototype.replace
+VueRouter.prototype.replace = function replace (location) {
+  return originalReplace.call(this, location).catch((error: any) => error)
 }
 
 let routes = [