mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-11 20:20:48 +08:00
parent
f8f231253d
commit
5dac95c3de
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ const searchLogs = async () => {
|
||||||
`${protocol}://${host}/api/v1/containers/search/log?container=${logSearch.containerID}&since=${logSearch.mode}&tail=${logSearch.tail}&follow=${logSearch.isWatch}`,
|
`${protocol}://${host}/api/v1/containers/search/log?container=${logSearch.containerID}&since=${logSearch.mode}&tail=${logSearch.tail}&follow=${logSearch.isWatch}`,
|
||||||
);
|
);
|
||||||
terminalSocket.value.onmessage = (event) => {
|
terminalSocket.value.onmessage = (event) => {
|
||||||
logInfo.value += event.data;
|
logInfo.value += event.data.replace(/\x1B\[[0-9;]*[mG]/g, '');
|
||||||
const state = view.value.state;
|
const state = view.value.state;
|
||||||
view.value.dispatch({
|
view.value.dispatch({
|
||||||
selection: { anchor: state.doc.length, head: state.doc.length },
|
selection: { anchor: state.doc.length, head: state.doc.length },
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue