update routes
This commit is contained in:
parent
32cee3e3d1
commit
c7512e2041
|
|
@ -93,9 +93,8 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
|
|||
let data = content.data.split("\n");
|
||||
data.map((line, index) => {
|
||||
data[index] =
|
||||
"<span style='background-color:pink;'>" +
|
||||
(index + 1) +
|
||||
"</span>" +
|
||||
"|-|" +
|
||||
line;
|
||||
listKeyValues
|
||||
.map((obj) => obj.$original.value)
|
||||
|
|
@ -105,9 +104,8 @@ Route.get("/api/log/showLog/:name?", async ({ request, response }) => {
|
|||
.length === 0) {
|
||||
data[index] =
|
||||
data[index].slice(0, data[index].search(value)) +
|
||||
"<span style='background-color:yellow;'>" +
|
||||
value +
|
||||
"</span>" +
|
||||
"|-|" +
|
||||
data[index].slice(data[index].search(value) + value.length);
|
||||
// }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue