diff --git a/src/project/police/AppMessageNotification/selectDeptUser.vue b/src/project/police/AppMessageNotification/selectDeptUser.vue index 2a37efb3..d1e21678 100644 --- a/src/project/police/AppMessageNotification/selectDeptUser.vue +++ b/src/project/police/AppMessageNotification/selectDeptUser.vue @@ -54,7 +54,7 @@ export default { } }, onLoad() { - this.selected = this.$route.query.selected?.map(id => ({id})) || [] + this.selected = [this.$route.query.selected].flat().filter(e => !!e)?.map(id => ({id})) || [] this.getAllDepts() }, methods: {