mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-06 13:04:10 +08:00
修复showMessageBox在传入数字时报错的BUG
This commit is contained in:
parent
49d56502e0
commit
abcb672d70
@ -141,7 +141,7 @@ export default {
|
||||
* @param position 消息显示位置,默认为"top"
|
||||
*/
|
||||
showMessageBox: (message, icon = "success", time, position = "top") => {
|
||||
message = window.lodashM.truncate(message, { length: 1200 });
|
||||
message = window.lodashM.truncate(message.toString(), { length: 1200 });
|
||||
if (icon === "success") icon = "positive";
|
||||
if (icon === "error") icon = "negative";
|
||||
if (typeof time === "undefined")
|
||||
|
Loading…
x
Reference in New Issue
Block a user