mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-13 03:33:50 +00:00
parent
5d94fe5f9c
commit
20d3b80d41
|
@ -52,9 +52,8 @@ export default defineComponent({
|
|||
const botList = ref<string[]>([]);
|
||||
const cumulativeData = ref<{ date: number; profit: any }[]>([]);
|
||||
|
||||
watch(
|
||||
() => props.trades,
|
||||
() => {
|
||||
const calcCumulativeData = () => {
|
||||
console.log('trades');
|
||||
botList.value = [];
|
||||
const res: CumProfitData[] = [];
|
||||
const resD: CumProfitDataPerDate = {};
|
||||
|
@ -97,8 +96,10 @@ export default defineComponent({
|
|||
// });
|
||||
return obj;
|
||||
});
|
||||
},
|
||||
);
|
||||
};
|
||||
watch([props.trades], calcCumulativeData);
|
||||
// Initial call
|
||||
calcCumulativeData();
|
||||
|
||||
const chartOptions = computed((): EChartsOption => {
|
||||
const chartOptionsLoc: EChartsOption = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user