mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-06 01:05:13 +00:00
perf: 优化错误显示
This commit is contained in:
parent
fa405f4cce
commit
32f708a014
@ -285,7 +285,9 @@ export default {
|
|||||||
const data = []
|
const data = []
|
||||||
// eslint-disable-next-line prefer-const
|
// eslint-disable-next-line prefer-const
|
||||||
for (let [key, value] of Object.entries(errorData)) {
|
for (let [key, value] of Object.entries(errorData)) {
|
||||||
if (typeof value === 'object') {
|
if (Array.isArray(value)) {
|
||||||
|
value = JSON.stringify(value)
|
||||||
|
} else if (typeof value === 'object') {
|
||||||
value = this.beautifyErrorData(value)
|
value = this.beautifyErrorData(value)
|
||||||
}
|
}
|
||||||
let label = this.tableColumnNameMapper[key]
|
let label = this.tableColumnNameMapper[key]
|
||||||
|
@ -63,9 +63,9 @@ export default {
|
|||||||
this.inEditMode = true
|
this.inEditMode = true
|
||||||
},
|
},
|
||||||
getCellValue(val) {
|
getCellValue(val) {
|
||||||
let v
|
let v = ''
|
||||||
if (val && typeof val === 'object') {
|
if (val && typeof val === 'object') {
|
||||||
v = val['name'] || val['display_name'] || ''
|
v = val['name'] || val['display_name'] || JSON.stringify(val)
|
||||||
}
|
}
|
||||||
return v || val
|
return v || val
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user