|
@@ -76,10 +76,14 @@ export default {
|
|
}
|
|
}
|
|
else if(cascaderInput.indexOf(item.inputMode) != -1){
|
|
else if(cascaderInput.indexOf(item.inputMode) != -1){
|
|
let options;
|
|
let options;
|
|
- if (item.dataSource instanceof Array) {
|
|
|
|
- options = item.dataSource;
|
|
|
|
|
|
+ if (item.dataSource) {
|
|
|
|
+ if (item.dataSource instanceof Array) {
|
|
|
|
+ options = item.dataSource;
|
|
|
|
+ } else {
|
|
|
|
+ options = JSON.parse(item.dataSource)
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
- options = JSON.parse(item.dataSource)
|
|
|
|
|
|
+ options = []
|
|
}
|
|
}
|
|
if (options[0] && options[0].content) {
|
|
if (options[0] && options[0].content) {
|
|
item.props = {
|
|
item.props = {
|