refactor: 分享链接失效,提示优化
This commit is contained in:
parent
430820ab58
commit
5811a2d892
|
@ -7,6 +7,7 @@ import i18n from "@/i18n/i18n";
|
||||||
import chart from "@/common/js/chart";
|
import chart from "@/common/js/chart";
|
||||||
import filters from "@/common/js/filter";
|
import filters from "@/common/js/filter";
|
||||||
import icon from "@/common/js/icon";
|
import icon from "@/common/js/icon";
|
||||||
|
import message from "@/common/js/message";
|
||||||
|
|
||||||
// import CKEditor from '@ckeditor/ckeditor5-vue';
|
// import CKEditor from '@ckeditor/ckeditor5-vue';
|
||||||
|
|
||||||
|
@ -28,6 +29,7 @@ function planReportUse(id, template) {
|
||||||
Vue.use(Table);
|
Vue.use(Table);
|
||||||
Vue.use(filters);
|
Vue.use(filters);
|
||||||
Vue.use(icon);
|
Vue.use(icon);
|
||||||
|
Vue.use(message);
|
||||||
// Vue.use(CKEditor);
|
// Vue.use(CKEditor);
|
||||||
|
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|
|
@ -21,6 +21,10 @@ export default {
|
||||||
created() {
|
created() {
|
||||||
this.shareId = getShareId();
|
this.shareId = getShareId();
|
||||||
getShareInfo(this.shareId, (data) => {
|
getShareInfo(this.shareId, (data) => {
|
||||||
|
if (!data) {
|
||||||
|
this.$error('连接已失效,请重新获取!');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (data.shareType === 'PLAN_REPORT') {
|
if (data.shareType === 'PLAN_REPORT') {
|
||||||
this.planId = data.customData;
|
this.planId = data.customData;
|
||||||
} else if (data.shareType === 'PLAN_DB_REPORT') {
|
} else if (data.shareType === 'PLAN_DB_REPORT') {
|
||||||
|
|
Loading…
Reference in New Issue