refactor: 分享链接失效,提示优化 (#5935)

Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-09-03 15:26:11 +08:00 committed by GitHub
parent e3c36d05d1
commit 6bcee5575a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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') {