|
@@ -373,6 +373,16 @@
|
|
|
person_popedom: 'person_popedom',
|
|
|
})
|
|
|
},
|
|
|
+ //keepalive监控判断
|
|
|
+ beforeRouteLeave(to, from, next) {
|
|
|
+ console.log(to.name);
|
|
|
+ if (['MasterAttendanceTemperatureInfo', 'MasterAttendanceLeaveInfo', 'MasterAttendanceInfo'].indexOf(to.name) > -1) {
|
|
|
+ this.$store.commit('SET_KEEP_ALIVE_COMPONENTS', ['MasterAttendanceStatisticList'])
|
|
|
+ } else {
|
|
|
+ this.$store.commit('SET_KEEP_ALIVE_COMPONENTS', [])
|
|
|
+ }
|
|
|
+ next()
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|