增加入参判断是否调用接口
This commit is contained in:
@@ -94,14 +94,14 @@ export default {
|
|||||||
this.getSourceData(item, index)
|
this.getSourceData(item, index)
|
||||||
}
|
}
|
||||||
if (item.type === 'monitor' && item.monitorType === 'cmcc') {
|
if (item.type === 'monitor' && item.monitorType === 'cmcc') {
|
||||||
this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
item.moniterId && this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$set(this.componentList[index], 'src', JSON.parse(res.data).url)
|
this.$set(this.componentList[index], 'src', JSON.parse(res.data).url)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (item.type === 'monitor' && item.monitorType === 'slw') {
|
if (item.type === 'monitor' && item.monitorType === 'slw') {
|
||||||
this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
item.moniterId && this.instance.post(`${this.urlPrefix}/appzyvideoequipment/getWebSdkUrl?deviceId=${item.moniterId}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$set(this.componentList[index], 'src', res.data)
|
this.$set(this.componentList[index], 'src', res.data)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user