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') {