2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 10:37:14 +08:00

feat: 应用支持实时日志

This commit is contained in:
耗子
2024-10-21 01:33:13 +08:00
parent 5ae6135429
commit 730aea037c
15 changed files with 21 additions and 234 deletions

View File

@@ -11,7 +11,7 @@ const logRef = ref<LogInst | null>(null)
let logWs: WebSocket | null = null
const init = async () => {
const cmd = `tail -n 40 -f ${props.path}`
const cmd = `tail -n 40 -f '${props.path}'`
ws.exec(cmd)
.then((ws: WebSocket) => {
logWs = ws

View File

@@ -12,7 +12,7 @@ const logRef = ref<LogInst | null>(null)
let logWs: WebSocket | null = null
const init = async () => {
const cmd = `tail -n 40 -f ${props.path}`
const cmd = `tail -n 40 -f '${props.path}'`
ws.exec(cmd)
.then((ws: WebSocket) => {
logWs = ws