From 9673d44eb2893059659b175a98d98bdbaf2028db Mon Sep 17 00:00:00 2001
From: ParkByungGeon <zzqudrjs@ajou.ac.kr>
Date: Tue, 10 Dec 2019 20:22:13 +0900
Subject: [PATCH] =?UTF-8?q?Page3=20created()=20=EC=B4=88=EA=B8=B0=ED=99=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Layout/Components/StrategySimulator.vue   | 27 +++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/Frontend/src/Layout/Components/StrategySimulator.vue b/Frontend/src/Layout/Components/StrategySimulator.vue
index 40e3d91..d244978 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>
-- 
GitLab