fix:修改奇遇本逻辑

This commit is contained in:
luying
2020-10-16 18:57:21 +08:00
parent df879279cb
commit 20828f9194
6 changed files with 102 additions and 52 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ export function globalErrorHandler(err: Error, msg: any, resp: any,
}
// app configure
app.configure('production|development', function () {
app.configure('production|development|local', function () {
app.set(RESERVED.ERROR_HANDLER, errorHandler);
app.set(RESERVED.GLOBAL_ERROR_HANDLER, globalErrorHandler);
app.globalAfter((err: Error, routeRecord: RouteRecord, msg: any, session: FrontendOrBackendSession, resp: any, cb: HandlerCallback) => {