Selaa lähdekoodia

feat(frontend): 导出日志新增版本信息、任务页显示调整

Signed-off-by: Myon <[email protected]>
Myon 3 vuotta sitten
vanhempi
sitoutus
80222fd8c8
2 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 1 1
      frontend/src/pages/jobs/index.vue
  2. 2 1
      frontend/src/pages/logs/index.vue

+ 1 - 1
frontend/src/pages/jobs/index.vue

@@ -17,7 +17,7 @@
       </header>
     </q-card>
 
-    <template v-if="subJobsDetail">
+    <template v-if="subJobsDetail && isJobRunning">
       <q-separator class="q-my-md" />
 
       <job-detail-panel />

+ 2 - 1
frontend/src/pages/logs/index.vue

@@ -65,6 +65,7 @@ import { computed } from 'vue';
 import LogViewer from 'components/LogViewer';
 import { getExportSettings, useSettings } from 'pages/settings/useSettings';
 import { gotoGithubIssuePage } from 'src/utils/CommonUtils';
+import { systemState } from 'src/store/systemState';
 
 const { logList, currentIndex, currentItem } = useLogList();
 
@@ -89,7 +90,7 @@ const downloadLog = (logLines) => {
   const filename = `${logLines[0]?.date_time || 'output'}.log`;
   const configString = JSON.stringify(getExportSettings(), null, 2);
   const logString = getTextLogContent(logLines);
-  const content = `config:\n${configString}\n\nlog:\n${logString}`;
+  const content = `version: ${systemState.systemInfo?.version}\n\nconfig:\n${configString}\n\nlog:\n${logString}`;
   saveText(filename, content);
 };
 </script>