增加入参判断是否调用接口

This commit is contained in:
aixianling
2024-07-16 12:04:06 +08:00
parent 916fae5c36
commit 308c7f8ab0

View File

@@ -39,7 +39,7 @@ export default {
methods: { methods: {
getCmccURL() { getCmccURL() {
const {did} = this.$attrs const {did} = this.$attrs
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
} }