|
@@ -104,6 +104,9 @@ export default {
|
|
|
if (typeof init === "string") {
|
|
|
return [{ value: init }];
|
|
|
}
|
|
|
+ if (init.length === 0) {
|
|
|
+ return [{ value: "" }];
|
|
|
+ }
|
|
|
return init.map((i) => {
|
|
|
return {
|
|
|
value: i,
|
|
@@ -142,7 +145,6 @@ export default {
|
|
|
handler(info) {
|
|
|
let pathArr = this.formItemObj.path.split(".");
|
|
|
if (pathArr.length > 1 && info[pathArr[0]].hasOwnProperty(pathArr[1])) {
|
|
|
- // console.log(this.filterInitValue(info[pathArr[0]][pathArr[1]]), 222);
|
|
|
this.value = this.filterInitValue(info[pathArr[0]][pathArr[1]]);
|
|
|
} else if (pathArr.length === 1) {
|
|
|
this.value = this.filterInitValue(info[pathArr[0]]);
|