diff --git a/src/layout/dashboard/DashboardLayout.vue b/src/layout/dashboard/DashboardLayout.vue index 834cbb0..000a06d 100644 --- a/src/layout/dashboard/DashboardLayout.vue +++ b/src/layout/dashboard/DashboardLayout.vue @@ -22,6 +22,11 @@ :name="'短线胜率测试'" icon="tim-icons icon-single-02" /> + 触发止损点`, this.data[i]); let lostPercent = ((stopLost - buyPrice) / buyPrice) * 100; - // console.log("做多亏损比", lostPercent); + // console.log("做多亏损比", lostPercent, buyPrice, timeStamp); result = lostPercent; break; } else { @@ -314,7 +314,13 @@ export default { } else if (this.data[i][2] > stopLost) { // console.log(`---->触发止损点`, this.data[i]); let lostPercent = ((buyPrice - stopLost) / buyPrice) * 100; - // console.log("做空亏损比", lostPercent, buyPrice, stopLost); + // console.log( + // "做空亏损比", + // lostPercent, + // buyPrice, + // stopLost, + // timeStamp + // ); result = lostPercent; break; } else { diff --git a/src/router/routes.js b/src/router/routes.js index b92db23..9626100 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -15,6 +15,7 @@ const Account = () => import("@/pages/Account"); const Edit = () => import("@/pages/Robot/edit.vue"); const WinRate = () => import("@/pages/WinRate"); const ReCheck = () => import("@/pages/ReCheck"); +const Capital = () => import("@/pages/Profit"); const routes = [ { path: "/", @@ -45,6 +46,11 @@ const routes = [ path: "reCheck", name: "reCheck", component: ReCheck + }, + { + path: "capital", + name: "capital", + component: Capital } // { // path: "profile",