zhangweicheng 6 سال پیش
والد
کامیت
dd14b427d7
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      modules/pm/controllers/pm_controller.js

+ 1 - 1
modules/pm/controllers/pm_controller.js

@@ -208,7 +208,7 @@ module.exports = {
     index: async function(request, response) {
         // 获取编办信息
         let sessionCompilation = request.session.sessionCompilation;
-        if (sessionCompilation === undefined) {
+        if (sessionCompilation === undefined ||sessionCompilation ===null) {
             return response.redirect('/logout');
         }
         let compilationModel = new CompilationModel();