|
@@ -41,27 +41,15 @@ function addNotFindPage(router) {
|
|
|
href: location.href
|
|
|
},
|
|
|
extra: {
|
|
|
- router: router,
|
|
|
- to: to,
|
|
|
- from: from
|
|
|
+ to: {
|
|
|
+ fullPath: to.fullPath
|
|
|
+ },
|
|
|
+ from: {
|
|
|
+ fullPath: from && from.fullPath
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
|
|
|
- if (window.jQuery) {
|
|
|
- $.ajax({
|
|
|
- url: '/data-export/help-report',
|
|
|
- method: 'post',
|
|
|
- data: {
|
|
|
- type: 'Error getHasRouteMatched beforeEach',
|
|
|
- extra: JSON.stringify({
|
|
|
- router: router,
|
|
|
- to: to,
|
|
|
- from: from
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
window.top.location.replace(notFindPage);
|
|
|
} else {
|
|
|
next();
|
|
@@ -73,23 +61,9 @@ function addNotFindPage(router) {
|
|
|
level: 'error',
|
|
|
tags: {
|
|
|
href: location.href
|
|
|
- },
|
|
|
- extra: {
|
|
|
- router: router
|
|
|
}
|
|
|
})
|
|
|
- if (window.jQuery) {
|
|
|
- $.ajax({
|
|
|
- url: '/data-export/help-report',
|
|
|
- method: 'post',
|
|
|
- data: {
|
|
|
- type: 'Error getHasRouteMatched',
|
|
|
- extra: JSON.stringify({
|
|
|
- router: router,
|
|
|
- })
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
+
|
|
|
window.top.location.replace(notFindPage);
|
|
|
}
|
|
|
}
|