refactor: 分享链接失效,提示优化

This commit is contained in:
chenjianxing 2021-09-03 15:02:59 +08:00 committed by jianxing
parent 430820ab58
commit 5811a2d892
2 changed files with 6 additions and 0 deletions

View File

@ -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({

View File

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