fix: 外部链接预览

This commit is contained in:
fit2cloud-chenyw 2021-05-19 19:03:50 +08:00
parent d06d8cfedc
commit f7cc4599cc
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
<template>
<div id="canvasInfo" :style="customStyle" class="bg">
<el-row v-if="componentDataShow.length===0" style="height: 100%;" class="custom-position">
{{ $t('panel.panel_null') }}
<!-- {{ $t('panel.panel_null') }} -->
</el-row>
<ComponentWrapper
v-for="(item, index) in componentDataInfo"

View File

@ -6,9 +6,11 @@ import '@/styles/index.scss' // global css
import i18n from '../lang' // internationalization
import ElementUI from 'element-ui'
import '@/components/canvas/custom-component' // 注册自定义组件
import widgets from '@/components/widget'
import * as echarts from 'echarts'
Vue.prototype.$echarts = echarts
Vue.config.productionTip = false
Vue.use(widgets)
Vue.use(ElementUI, {
i18n: (key, value) => i18n.t(key, value)