fix : asset list Box 页面打开时请求错误
This commit is contained in:
@@ -820,6 +820,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getModelData () {
|
getModelData () {
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
|
if (this.editAsset.typeId) {
|
||||||
this.$get('asset/model?pageSize=-1&typeIds=' + this.editAsset.typeId).then(response => {
|
this.$get('asset/model?pageSize=-1&typeIds=' + this.editAsset.typeId).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.options.modelOptions = response.data.list
|
this.options.modelOptions = response.data.list
|
||||||
@@ -840,6 +841,7 @@ export default {
|
|||||||
}
|
}
|
||||||
resolve()
|
resolve()
|
||||||
})
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
checkLocation (rule, value, callback) {
|
checkLocation (rule, value, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user