diff --git a/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java b/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java index bbf3845..16cef2e 100644 --- a/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java +++ b/plugin-demo/src/main/java/com/finebi/plugin/BIBoxPlotChartComponent.java @@ -1,6 +1,7 @@ package com.finebi.plugin; import com.fr.web.struct.Component; +import com.fr.web.struct.category.ParserType; import com.fr.web.struct.category.ScriptPath; import com.fr.web.struct.category.StylePath; @@ -18,6 +19,6 @@ public class BIBoxPlotChartComponent extends Component { } public StylePath style() { - return StylePath.build("com/finebi/plugin/web/css/chart.css"); + return StylePath.build("com/finebi/plugin/web/css/chart.css", ParserType.DYNAMIC); } } \ No newline at end of file diff --git a/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css b/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css index 19ee991..b6385ac 100644 --- a/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css +++ b/plugin-demo/src/main/resources/com/finebi/plugin/web/css/chart.css @@ -1,17 +1,17 @@ .chart-type-boxplot-column-icon .x-icon { display: block; - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; background-size: contain; } .chart-type-boxplot-column-icon .x-icon.hack { - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/boxplot.png') no-repeat center center; } .chart-type-boxplot-column-disabled-icon .x-icon { display: block; - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; background-size: contain; } .chart-type-boxplot-column-disabled-icon .x-icon.hack { - background: url('/webroot/decision/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; + background: url('${fineServletURL}/resources?path=/com/finebi/plugin/web/image/disable.png') no-repeat center center; } \ No newline at end of file