diff --git a/src/views/Trading.vue b/src/views/Trading.vue index 37f8f1ee..07fcb4dd 100644 --- a/src/views/Trading.vue +++ b/src/views/Trading.vue @@ -79,6 +79,7 @@ import ReloadControl from '@/components/ftbot/ReloadControl.vue'; import LogViewer from '@/components/ftbot/LogViewer.vue'; import { Trade } from '@/store/types'; +import { UserStoreGetters } from '@/store/modules/ftbot'; const ftbot = namespace('ftbot'); @@ -99,14 +100,11 @@ const ftbot = namespace('ftbot'); export default class Trading extends Vue { @ftbot.State detailTradeId!: string; - @ftbot.Getter - openTrades!: Array; + @ftbot.Getter openTrades!: Array; - @ftbot.Getter - closedTrades!: Array; + @ftbot.Getter closedTrades!: Array; - @ftbot.Getter - openTradeDetail!: Trade; + @ftbot.Getter [UserStoreGetters.openTradeDetail]!: Trade; }