mirror of
https://github.com/chaos-zhu/easynode.git
synced 2026-05-06 21:40:35 +08:00
feat: docker日志限制默认行数
This commit is contained in:
@@ -2236,7 +2236,7 @@ const handleDockerComposeAction = (row, action) => {
|
||||
command = `docker compose -f ${ fullPath } pull && docker compose -f ${ fullPath } down && docker compose -f ${ fullPath } up -d\n`
|
||||
break
|
||||
case 'logs':
|
||||
command = `docker compose -f ${ fullPath } logs -f\n`
|
||||
command = `docker compose -f ${ fullPath } logs --tail=500 -f\n`
|
||||
break
|
||||
default:
|
||||
$message.error('未知操作')
|
||||
|
||||
@@ -759,7 +759,7 @@ const handleRightClick = async (e) => {
|
||||
onClick: () => {
|
||||
if (!plusTips()) return
|
||||
focusTab()
|
||||
inputCommand(`docker logs -f ${ str }`)
|
||||
inputCommand(`docker logs --tail=500 -f ${ str }`)
|
||||
}
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user