细节优化
This commit is contained in:
parent
75c8d3d5fe
commit
08b2773a9f
|
@ -521,11 +521,10 @@ class PluginsLoader {
|
|||
text = lodash.truncate(text, { length: 10 })
|
||||
}
|
||||
|
||||
if (Array.isArray(msg)) {
|
||||
msg = [segment.at(at, text), ...msg]
|
||||
} else {
|
||||
msg = [segment.at(at, text), msg]
|
||||
}
|
||||
if (Array.isArray(msg))
|
||||
msg.unshift(segment.at(at, text), "\n")
|
||||
else
|
||||
msg = [segment.at(at, text), "\n", msg]
|
||||
}
|
||||
|
||||
let msgRes
|
||||
|
|
Loading…
Reference in New Issue