fix: 优化代码格式

This commit is contained in:
zhangdahai112 2022-02-14 18:21:55 +08:00 committed by john1298308460
parent 1ac19b7ecf
commit 4290ece1a0
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@
this.detail = value;
let diffValue = value.diffValue;
if (diffValue) {
if (value !== null && value.diffValue !== 'null' && value.diffValue !== '' && value.diffValue !== undefined) {
if (value !== null && value.diffValue && value.diffValue !== 'null') {
if (Object.prototype.toString.call(value.diffValue).match(/\[object (\w+)\]/)[1].toLowerCase() !== 'object'
&& Object.prototype.toString.call(value.diffValue).match(/\[object (\w+)\]/)[1].toLowerCase() !== 'array') {
diffValue = JSON.parse(value.diffValue);