diff --git a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue index 7d2d6067..4ae9ff51 100644 --- a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue +++ b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue @@ -244,7 +244,8 @@ export default { }) }, handleAdd: function () { - this.$refs.modalForm.add({folderId: this.selectedTreeKeys.join(',')}) + const folderId = this.selectedTreeKeys && this.selectedTreeKeys.length > 0 ? this.selectedTreeKeys.join(',') : null + this.$refs.modalForm.add({ folderId }) this.$refs.modalForm.title = this.$t('newlyAdded') this.$refs.modalForm.disableSubmit = false },