|
@@ -108,8 +108,10 @@ export default defineComponent({
|
|
|
})
|
|
|
.then(resp => resp.json())
|
|
|
.then((json) => {
|
|
|
- if (json instanceof Array) {
|
|
|
- item.options.remoteOptions = json.map(data => ({
|
|
|
+ console.log(json)
|
|
|
+ const res = json.data
|
|
|
+ if (res instanceof Array) {
|
|
|
+ item.options.remoteOptions = res.map(data => ({
|
|
|
label: data[item.options.props.label],
|
|
|
value: data[item.options.props.value],
|
|
|
children: data[item.options.props.children],
|