diff --git a/src/views/modules/base/diyInfo.vue b/src/views/modules/base/diyInfo.vue index 7f3e86bcc..2d103fba8 100644 --- a/src/views/modules/base/diyInfo.vue +++ b/src/views/modules/base/diyInfo.vue @@ -257,12 +257,15 @@ export default { }, handlePreview(id) { if (id) this.getPreview(id) - else this.previewList = this.rightList.map(item => { + else { + if (this.rightList.length == 0) return this.$message.error('请选择导出信息') + this.previewList = this.rightList.map(item => { return { label: item.groupName, children: item.queryItemList } }) + } this.diyDialog = true }, handleExport() {