增加入参判断是否调用接口
This commit is contained in:
@@ -39,11 +39,11 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getCmccURL() {
|
getCmccURL() {
|
||||||
const {did} = this.$attrs
|
const {did} = this.$attrs
|
||||||
did && request.post(`/app/appzyvideoequipment/getWebSdkUrl?deviceId=${did}`).then(res => {
|
did ? request.post(`/app/appzyvideoequipment/getWebSdkUrl?deviceId=${did}`).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.cmccUrl = JSON.parse(res.data).url
|
this.cmccUrl = JSON.parse(res.data).url
|
||||||
}
|
}
|
||||||
}).finally(() => this.cmccUrl = this.cmccUrl || this.src)
|
}) : this.cmccUrl = this.src
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user