From b5ea5466c6e0d3efe089f2d440410c048db9af0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Thu, 2 Nov 2023 18:55:26 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B5=84=E6=96=99=E4=B8=AD=E5=BF=83?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profileCenter/ProfileCenterList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 },