fixed(table): code smell bug

This commit is contained in:
JiwenBai 2019-12-31 13:46:58 +08:00
parent 68ffaed281
commit fe9b900528

View File

@ -16,7 +16,7 @@ export default {
if (render) {
return render(h, params, index)
} else {
if (title && title.length >= 0) {
if (title && title.length) {
params.row = {}
params.row[keyName] = title
}