Prechádzať zdrojové kódy

feat:eslint语法报错修复

yangfeng 1 rok pred
rodič
commit
a534cfefab
1 zmenil súbory, kde vykonal 3 pridanie a 3 odobranie
  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 = [