sonar 12 left
This commit is contained in:
@@ -201,6 +201,7 @@ export default defineStore('allMapDataStore', {
|
||||
break;
|
||||
case 'float':
|
||||
att.value = att.value !== null ? Number(new Decimal(att.value).toFixed(2)) : null;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -209,7 +210,10 @@ export default defineStore('allMapDataStore', {
|
||||
});
|
||||
return this.allCase;
|
||||
} catch(error) {
|
||||
if(error.response.status === 404) return this.infinite404 = 404;
|
||||
if(error.response.status === 404) {
|
||||
this.infinite404 = 404;
|
||||
return;
|
||||
}
|
||||
apiError(error, 'Failed to load the Trace Detail.');
|
||||
};
|
||||
},
|
||||
@@ -236,6 +240,7 @@ export default defineStore('allMapDataStore', {
|
||||
break;
|
||||
case 'float':
|
||||
att.value = att.value !== null ? Number(new Decimal(att.value).toFixed(2)) : null;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@@ -244,7 +249,10 @@ export default defineStore('allMapDataStore', {
|
||||
});
|
||||
return this.allBaseCase;
|
||||
} catch(error) {
|
||||
if(error.response.status === 404) return this.infinite404 = 404;
|
||||
if(error.response.status === 404) {
|
||||
this.infinite404 = 404;
|
||||
return;
|
||||
}
|
||||
apiError(error, 'Failed to load the Base Trace Detail.');
|
||||
};
|
||||
},
|
||||
|
||||
@@ -267,7 +267,11 @@ export default defineStore('conformanceStore', {
|
||||
}
|
||||
try {
|
||||
const response = await this.$axios.get(api);
|
||||
!getRouteFile ? this.allConformanceTempReportData = response.data : this.allRouteFile = response.data.file;
|
||||
if(!getRouteFile) {
|
||||
this.allConformanceTempReportData = response.data
|
||||
} else {
|
||||
this.allRouteFile = response.data.file;
|
||||
}
|
||||
} catch(error) {
|
||||
apiError(error, 'Failed to Get the Temporary Log Conformance Report.');
|
||||
}
|
||||
@@ -337,7 +341,10 @@ export default defineStore('conformanceStore', {
|
||||
this.allCases = response.data.cases;
|
||||
return response.data.cases;
|
||||
} catch(error) {
|
||||
if(error.response.status === 404) return this.infinite404 = 404;
|
||||
if(error.response.status === 404) {
|
||||
this.infinite404 = 404;
|
||||
return;
|
||||
}
|
||||
apiError(error, 'Failed to Get the detail of a temporary log conformance issue.');
|
||||
};
|
||||
},
|
||||
@@ -390,7 +397,10 @@ export default defineStore('conformanceStore', {
|
||||
this.allLoopCases = response.data.cases;
|
||||
return response.data.cases;
|
||||
} catch(error) {
|
||||
if(error.response.status === 404) return this.infinite404 = 404;
|
||||
if(error.response.status === 404) {
|
||||
this.infinite404 = 404;
|
||||
return;
|
||||
}
|
||||
apiError(error, 'Failed to Get the detail of a temporary log conformance loop.');
|
||||
};
|
||||
},
|
||||
|
||||
@@ -115,7 +115,7 @@ export default defineStore('loginStore', {
|
||||
const api = '/api/my-account';
|
||||
|
||||
try {
|
||||
const response = await axios.get(api);
|
||||
await axios.get(api);
|
||||
} catch(error) {
|
||||
this.$router.push('/login');
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user