feat(ui): 日志查看的导出日志改为log格式

This commit is contained in:
Alirea
2025-09-26 00:39:04 +08:00
parent e528936c8d
commit 128cf3de4c

View File

@@ -60,7 +60,7 @@
<template #icon> <template #icon>
<ExportOutlined /> <ExportOutlined />
</template> </template>
导出日志txt格式 导出日志log格式
</a-button> </a-button>
<!-- <a-button @click="scrollToBottom" :disabled="!logs">--> <!-- <a-button @click="scrollToBottom" :disabled="!logs">-->
<!-- <template #icon><DownOutlined /></template>--> <!-- <template #icon><DownOutlined /></template>-->
@@ -285,7 +285,7 @@ const exportLogs = async () => {
} else { } else {
fileName = `logs_${new Date().toISOString().slice(0, 10)}` fileName = `logs_${new Date().toISOString().slice(0, 10)}`
} }
a.download = `${fileName}.txt` a.download = `${fileName}.log`
document.body.appendChild(a) document.body.appendChild(a)
a.click() a.click()