细节优化

This commit is contained in:
🌌 2024-01-20 08:19:51 +08:00
parent 75c8d3d5fe
commit 08b2773a9f
1 changed files with 4 additions and 5 deletions

View File

@ -521,11 +521,10 @@ class PluginsLoader {
text = lodash.truncate(text, { length: 10 }) text = lodash.truncate(text, { length: 10 })
} }
if (Array.isArray(msg)) { if (Array.isArray(msg))
msg = [segment.at(at, text), ...msg] msg.unshift(segment.at(at, text), "\n")
} else { else
msg = [segment.at(at, text), msg] msg = [segment.at(at, text), "\n", msg]
}
} }
let msgRes let msgRes