From d9f8bf705d75193b7c7128d7e30d1befbdc2be97 Mon Sep 17 00:00:00 2001 From: liweijie Date: Thu, 24 Sep 2026 11:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E7=8F=AD=E6=AC=A1=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E7=9A=84=E6=8E=92=E8=AF=BE=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E8=BF=9B=E6=8E=92=E8=AF=BE=E7=AA=97=E5=8F=A3=EF=BC=8C=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E9=A1=B5=E9=9D=A2=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/teachBusiness/schedulingWindow/index.vue | 9 +++++++++ 1 file changed, 9 insertions(+) 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