Dev: Improve table source display

This commit is contained in:
surunzi
2016-09-09 15:54:29 +08:00
parent 721e1335f0
commit 1b3caf2455
2 changed files with 37 additions and 1 deletions

View File

@@ -72,7 +72,13 @@ export default class Log
if (this._needSrc())
{
this.src = extractObj(args.length === 1 && util.isObj(args[0]) ? args[0] : args);
if (type === 'table')
{
this.src = extractObj(args[0]);
} else
{
this.src = extractObj(args.length === 1 && util.isObj(args[0]) ? args[0] : args);
}
}
let msg = '', icon;