Browse Source

fix noBypass

HonorLee 6 years ago
parent
commit
44d9b2fc94
1 changed files with 1 additions and 1 deletions
  1. 1 1
      system/lib/core/router.js

+ 1 - 1
system/lib/core/router.js

@@ -40,7 +40,7 @@ var Router ={
             if(typeof handler[method]==='function'){
                 let noBypass = true;
                 if(typeof handler['__construct']==='function') noBypass = handler['__construct'](req,res);
-                if(noBypass) handler[method](req,res);
+                if(noBypass || noBypass===undefined) handler[method](req,res);
             }else{
                 Router._error('Handler ['+handlerFile+'] no such method "'+method+'"',res);
             }