fix: 修改G2引入图片资源路径,采用相对路径

main
wu.jian2 2 years ago
parent 37dfe44b65
commit 9453a0408d

@ -103,13 +103,13 @@ export default {
::v-deep .el-dialog__body { ::v-deep .el-dialog__body {
position: relative; position: relative;
padding: 0 !important; padding: 0 !important;
min-height: 535px; min-height: 550px;
overflow: hidden; overflow: hidden;
} }
::v-deep .bs-container { ::v-deep .bs-container {
padding: 0; padding: 0;
min-height: 535px; min-height: 550px;
.el-table { .el-table {
max-height: calc(90vh - 350px); max-height: calc(90vh - 350px);

@ -31,7 +31,7 @@ function getPlotList (files) {
name: config.name, name: config.name,
title: config.title, title: config.title,
icon: null, icon: null,
img: require(`data-room-ui/G2Plots/images/componentLogo/${config.title}.png`), img: require(`../G2Plots/images/componentLogo/${config.title}.png`),
className: className:
'com.gccloud.dataroom.core.module.chart.components.CustomComponentChart', 'com.gccloud.dataroom.core.module.chart.components.CustomComponentChart',
w: config?.option?.width || 450, w: config?.option?.width || 450,

Loading…
Cancel
Save