From d09bac27fa9592ed3b8c83df5ab1d6872ffbdd11 Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Tue, 26 Apr 2022 17:20:48 +0800 Subject: [PATCH] dd --- src/views/modules/base/diyInfo.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() {