diff --git a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts index 894e42f905..88f1d4f06c 100644 --- a/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts +++ b/core/core-frontend/src/views/chart/components/js/panel/charts/bar/bar.ts @@ -448,10 +448,7 @@ export class GroupBar extends StackBar { } const { chart } = drawOptions const { xAxis, xAxisExt, yAxis } = chart - let innerSort = true - if (!(xAxis.length && xAxisExt.length && yAxis.length)) { - innerSort = false - } + let innerSort = !!(xAxis.length && xAxisExt.length && yAxis.length) if (innerSort && yAxis[0].sort === 'none') { innerSort = false } diff --git a/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue b/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue index a5fb145885..dd309dfb75 100644 --- a/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue +++ b/core/core-frontend/src/views/chart/components/views/components/ChartComponentS2.vue @@ -294,7 +294,7 @@ const initScroll = () => { myChart && senior?.scrollCfg?.open && chartData.value.tableRow?.length && - PAGE_CHARTS.includes(chart.type) && + PAGE_CHARTS.includes(props.view.type) && !state.showPage ) { // 防止多次渲染