Explorar o código

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

wu.jian2 hai 1 ano
pai
achega
9453a0408d

+ 2 - 2
data-room-ui/packages/DataSetSetting/dataSetSetting.vue

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

+ 1 - 1
data-room-ui/packages/G2Plots/plotList.js

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