Browse Source

修改BUG

lan 2 years ago
parent
commit
2d8fb8453a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      assets/script/ui/home/HomeSemeUI.ts

+ 2 - 1
assets/script/ui/home/HomeSemeUI.ts

@@ -68,7 +68,8 @@ export class HomeSemeUI extends BaseUI {
         let isHomeWorkLock =
             !this.homeWorkType &&
             !isHomeWork &&
-            ((Data.home.role == HOME_ROLE_TYPE.student && (this.isActive || this.isTry)) ||
+            ((Data.home.role == HOME_ROLE_TYPE.student &&
+                (this.isActive || (Data.home.curSemeID == this.curSeme && this.isTry))) ||
                 Data.home.role == HOME_ROLE_TYPE.teacher)
         // let isLastGameIDLock = index + 1 > lastGameID && lastGameID != -1 && Data.home.role == HOME_ROLE_TYPE.student
         let isVisitorLock = Data.home.role == HOME_ROLE_TYPE.visitor && index != 0