diff --git a/frontend/src/views/teachBusiness/schedulingWindow/index.vue b/frontend/src/views/teachBusiness/schedulingWindow/index.vue index 9c6ed4c1..5fb454ad 100644 --- a/frontend/src/views/teachBusiness/schedulingWindow/index.vue +++ b/frontend/src/views/teachBusiness/schedulingWindow/index.vue @@ -794,6 +794,15 @@ export default { return this.candidateTeams.filter(t => !used.includes(t.xydbh)) } }, + watch: { + // 页面已被缓存/已打开时,路由 query 仍会更新——同步到当前班次学期并重新加载视图 + '$route.query.xydxqbh'(val) { + if (val && val !== this.xydxqbh) { + this.xydxqbh = val + this.loadView() + } + } + }, created() { if (this.$route.query && this.$route.query.xydxqbh) { this.xydxqbh = this.$route.query.xydxqbh