diff --git a/Frontend/src/Layout/Components/StrategySimulator.vue b/Frontend/src/Layout/Components/StrategySimulator.vue index 40e3d916e5964c339ba7597ec3fd759a95ac0f7e..d2449781f57de2eaa948ba904ba993eea9d30f8a 100644 --- a/Frontend/src/Layout/Components/StrategySimulator.vue +++ b/Frontend/src/Layout/Components/StrategySimulator.vue @@ -170,6 +170,33 @@ saveDataInFB: function () { } + }, + created(){ + this.$store.state.SS_init_money = 0, + this.$store.state.SS_init_stocks = [], + this.$store.state.SS_init_index_stock_num = 0, + this.$store.state.SS_ratio = [], + this.$store.state.SS_chart_labels = [], + this.$store.state.SS_chart_data1 = [], + this.$store.state.SS_chart_data2 = [], + this.$store.state.SS_chart_done = false, + + //총 투자 수익률 + this.$store.state.SS_whole_profit = 0, + + //연환산 수익률 + this.$store.state.SS_annual_profit = 0, + + this.stockNum=[], + this.date='', + this.budget= 0, + this.stockCode= [], + this.stockList= [], + + this.ratio= this.$store.state.SS_ratio, + this.tmp=0, + this.valid=false, + this.options=[] } } </script>