From 5811a2d892ef8cd3dd51dcfcdcbd98f95870ed28 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Fri, 3 Sep 2021 15:02:59 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=88=86=E4=BA=AB=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=A4=B1=E6=95=88=EF=BC=8C=E6=8F=90=E7=A4=BA=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/template/report/plan/planReportUse.js | 2 ++ .../template/report/plan/share/SharePlanReportTemplate.vue | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/frontend/src/template/report/plan/planReportUse.js b/frontend/src/template/report/plan/planReportUse.js index fe0e8ff392..67cac11b46 100644 --- a/frontend/src/template/report/plan/planReportUse.js +++ b/frontend/src/template/report/plan/planReportUse.js @@ -7,6 +7,7 @@ import i18n from "@/i18n/i18n"; import chart from "@/common/js/chart"; import filters from "@/common/js/filter"; import icon from "@/common/js/icon"; +import message from "@/common/js/message"; // import CKEditor from '@ckeditor/ckeditor5-vue'; @@ -28,6 +29,7 @@ function planReportUse(id, template) { Vue.use(Table); Vue.use(filters); Vue.use(icon); + Vue.use(message); // Vue.use(CKEditor); new Vue({ diff --git a/frontend/src/template/report/plan/share/SharePlanReportTemplate.vue b/frontend/src/template/report/plan/share/SharePlanReportTemplate.vue index 1218bb0e7d..6c9a87bee0 100644 --- a/frontend/src/template/report/plan/share/SharePlanReportTemplate.vue +++ b/frontend/src/template/report/plan/share/SharePlanReportTemplate.vue @@ -21,6 +21,10 @@ export default { created() { this.shareId = getShareId(); getShareInfo(this.shareId, (data) => { + if (!data) { + this.$error('连接已失效,请重新获取!'); + return; + } if (data.shareType === 'PLAN_REPORT') { this.planId = data.customData; } else if (data.shareType === 'PLAN_DB_REPORT') {