Skip to content

Commit a90d54f

Browse files
committed
fix: 恢复课程自动更新
1 parent 06ae63d commit a90d54f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/views/course.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export default {
128128
}
129129
// 缓存验证
130130
this.validateLocalCache();
131-
// refreshExpCourse();
132-
// refreshNormalCourse();
131+
refreshExpCourse();
132+
refreshNormalCourse();
133133
this.setActiveDay();
134134
this.get();
135135
this.week = this.curWeek;

src/views/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
<van-tabbar-item icon="logistics"></van-tabbar-item>
107107
</van-tabbar>
108108
<!-- 提前加载课程表 -->
109-
<!-- <course-table v-if="isLogin" style="display: none"/>-->
109+
<course-table v-if="isLogin" style="display: none"/>
110110
</div>
111111
</div>
112112
</template>
@@ -154,7 +154,7 @@ export default {
154154
// 更新检查
155155
this.updateCheck();
156156
// 登录检查
157-
// this.loginCheck();
157+
this.loginCheck();
158158
this.isLogin = localStorage.getItem("isLogin") === "true";
159159
// 0点后提示
160160
if (new Date().getHours() >= 0 && new Date().getHours() <= 6) {

0 commit comments

Comments
 (0)