feat(ui): 日志查看的导出日志改为log格式
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user