forked from liweijie/education
从班次信息管理的排课按钮进排课窗口,刷新页面信息
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user