mirror of
https://github.com/acepanel/panel.git
synced 2026-02-07 15:27:16 +08:00
feat: 应用支持实时日志
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user