|
@@ -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 = [
|