fix: 优化代码格式
This commit is contained in:
parent
1ac19b7ecf
commit
4290ece1a0
|
@ -41,7 +41,7 @@
|
||||||
this.detail = value;
|
this.detail = value;
|
||||||
let diffValue = value.diffValue;
|
let diffValue = value.diffValue;
|
||||||
if (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'
|
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') {
|
&& Object.prototype.toString.call(value.diffValue).match(/\[object (\w+)\]/)[1].toLowerCase() !== 'array') {
|
||||||
diffValue = JSON.parse(value.diffValue);
|
diffValue = JSON.parse(value.diffValue);
|
||||||
|
|
Loading…
Reference in New Issue