字典的值都为字符串类型,当有Boolean类型时会匹配失败,导致展示异常

pull/351/head
gugu-L 2 years ago
parent b7abcd8374
commit 5ced98f9ad

@ -58,6 +58,11 @@ export default {
unmatch() {
this.unmatchArray = [];
if (this.value !== null && typeof this.value !== "undefined") {
// Boolean
// truefalse
if (this.value === true || this.value === false) {
this.value = String(this.value);
}
//
if (!Array.isArray(this.value)) {
if (this.options.some((v) => v.value == this.value)) return false;

Loading…
Cancel
Save