mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 17:26:41 +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 }[] {
|
||||
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) {
|
||||
const matches = RegExp(logPattern).exec(log)
|
||||
@@ -79,6 +79,7 @@ onMounted(() => {
|
||||
/>
|
||||
<span class="mt-3">正在刷新 ...</span>
|
||||
</div>
|
||||
<div>
|
||||
<VTable
|
||||
class="table-rounded"
|
||||
hide-default-footer
|
||||
@@ -116,4 +117,5 @@ onMounted(() => {
|
||||
</tr>
|
||||
</tbody>
|
||||
</VTable>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user