Browse Source

迁移部分后台开关控制到前台

ellisran 3 months ago
parent
commit
a86788df0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/material_controller.js

+ 1 - 1
app/controller/material_controller.js

@@ -95,7 +95,7 @@ module.exports = app => {
                             await ctx.service.material.defaultUpdate({ id: s.id, final_auditor_str });
                         }
                     }
-                    if (!ctx.session.sessionProject.page_show.openMaterialStageRepeat) {
+                    if (!ctx.subProject.page_show.openMaterialStageRepeat) {
                         const materialStageList = s.stage_id.split(',');
                         for (const ms of materialStageList) {
                             const index = stages.findIndex(function(item) {