更新
This commit is contained in:
@@ -394,7 +394,7 @@ const actions = {
|
|||||||
if (logLists.length > 20) logLists.splice(logLists.length - 1, 1)
|
if (logLists.length > 20) logLists.splice(logLists.length - 1, 1)
|
||||||
loglist.unshift({
|
loglist.unshift({
|
||||||
time: texts[0].replace(/\//g, '-').replace(/时/g, ':').replace(/分/g, ':').replace(/秒/g, ''),
|
time: texts[0].replace(/\//g, '-').replace(/时/g, ':').replace(/分/g, ':').replace(/秒/g, ''),
|
||||||
text: texts[2],
|
text: texts[2].replace(texts[2].split(' ')[0], ''),
|
||||||
status: texts[1]
|
status: texts[1]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -408,7 +408,7 @@ const actions = {
|
|||||||
let texts = logs[i].split('|')
|
let texts = logs[i].split('|')
|
||||||
loglist.unshift({
|
loglist.unshift({
|
||||||
time: texts[0].replace(/\//g, '-').replace(/时/g, ':').replace(/分/g, ':').replace(/秒/g, ''),
|
time: texts[0].replace(/\//g, '-').replace(/时/g, ':').replace(/分/g, ':').replace(/秒/g, ''),
|
||||||
text: texts[2],
|
text: texts[2].replace(texts[2].split(' ')[0], ''),
|
||||||
status: texts[1]
|
status: texts[1]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user