style: 格式化文件

This commit is contained in:
奔跑的面条 2022-12-31 20:33:21 +08:00
parent 5261a09381
commit 36fdc22634

View File

@ -113,12 +113,11 @@ watch(
const calcData = (data: any, type?: string) => {
mergeConfig(props.chartConfig.option)
if(type=="preview"){
if (type == 'preview') {
calcCapsuleLengthAndLabelData(data)
} else {
calcCapsuleLengthAndLabelData(state.mergedConfig.dataset)
}
}
const mergeConfig = (data: any) => {
@ -156,7 +155,7 @@ onMounted(() => {
//
useChartDataFetch(props.chartConfig, useChartEditStore, (newData: any) => {
calcData(newData,"preview")
calcData(newData, 'preview')
})
</script>