PMCORE-3282:Solve error when jumping to a case

This commit is contained in:
fabio
2021-09-06 19:56:47 -04:00
parent e2d2c71339
commit fcff11485c
2 changed files with 22 additions and 16 deletions

View File

@@ -24,6 +24,16 @@ export default {
props: {
data: Object
},
data() {
return {
openDebug: false,
dataCase: null,
height: "100%",
width: "100%",
diffHeight: 10,
path: "",
};
},
mounted() {
let that = this;
this.height = window.innerHeight - this.diffHeight;
@@ -41,24 +51,21 @@ export default {
}
setTimeout(() => {
api.cases.debugStatus(this.dataCase).then((response) => {
if (response.data) {
that.openDebug = true;
}
});
let that = this;
if (this.dataCase.APP_UID) {
api.cases.debugStatus(this.dataCase)
.then((response) => {
if (response.data) {
that.openDebug = true;
}
})
.catch((error) => {
that.openDebug = false;
});
}
}, 2000);
window.addEventListener("resize", this.handleIframeResize);
},
data() {
return {
openDebug: false,
dataCase: null,
height: "100%",
width: "100%",
diffHeight: 10,
path: "",
};
},
methods: {
classBtn(cls) {
return "btn v-btn-request " + cls;