diff --git a/src/store/modules/home.js b/src/store/modules/home.js index ca92d85..fc0d0bf 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -64,9 +64,11 @@ const actions = { }, /** 初始化驾驶舱数据 */ async initCopilot({ commit }, { period, source }) { + if (source == 'comprehensive') return; + const fetcher = { yield: getCopilotYield, - energy: getCopilotEnergy, + comprehensive: getCopilotEnergy, efficiency: getCopilotEfficiency, }[source]; // 获取产量数据 diff --git a/src/views/copilot/components/CopilotHeader.vue b/src/views/copilot/components/CopilotHeader.vue index 8ee26cf..40ced8d 100644 --- a/src/views/copilot/components/CopilotHeader.vue +++ b/src/views/copilot/components/CopilotHeader.vue @@ -9,7 +9,7 @@