mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
fix logging ui
This commit is contained in:
@@ -28,7 +28,7 @@ function startSSELogging() {
|
|||||||
function extractLogDetailsFromLogs(logs: string[]): { level: string; time: string; program: string; content: string }[] {
|
function extractLogDetailsFromLogs(logs: string[]): { level: string; time: string; program: string; content: string }[] {
|
||||||
const logDetails: { level: string; time: string; program: string; content: string }[] = []
|
const logDetails: { level: string; time: string; program: string; content: string }[] = []
|
||||||
|
|
||||||
const logPattern = /^【(.*?)】.*\s(.*?)\s-\s(.*?)\s-\s(.*)$/
|
const logPattern = /^【(.*?)】[0-9\-:]*\s(.*?)\s-\s(.*?)\s-\s(.*)$/
|
||||||
|
|
||||||
for (const log of logs) {
|
for (const log of logs) {
|
||||||
const matches = RegExp(logPattern).exec(log)
|
const matches = RegExp(logPattern).exec(log)
|
||||||
@@ -79,6 +79,7 @@ onMounted(() => {
|
|||||||
/>
|
/>
|
||||||
<span class="mt-3">正在刷新 ...</span>
|
<span class="mt-3">正在刷新 ...</span>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
<VTable
|
<VTable
|
||||||
class="table-rounded"
|
class="table-rounded"
|
||||||
hide-default-footer
|
hide-default-footer
|
||||||
@@ -116,4 +117,5 @@ onMounted(() => {
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</VTable>
|
</VTable>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user