sonar 12 left

This commit is contained in:
Cindy Chang
2024-08-08 10:15:16 +08:00
parent 85151884fe
commit e313b92521
6 changed files with 28 additions and 22 deletions

View File

@@ -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.');
};
},