feat: add nginx detail status

This commit is contained in:
Akino 2025-04-10 03:36:32 +00:00
parent 241fa4adfe
commit 4e8346f04e
No known key found for this signature in database
GPG key ID: FB2F74D193A40907
17 changed files with 1607 additions and 39 deletions

View file

@ -121,7 +121,7 @@ export function setupResponseInterceptor() {
const otpModal = use2FAModal()
// Handle authentication errors
if (error.response) {
if (error?.response) {
switch (error.response.status) {
case 401:
secureSessionId.value = ''
@ -135,7 +135,7 @@ export function setupResponseInterceptor() {
}
// Handle JSON error that comes back as Blob for blob request type
if (error.response?.data instanceof Blob && error.response.data.type === 'application/json') {
if (error?.response?.data instanceof Blob && error?.response?.data?.type === 'application/json') {
try {
const text = await error.response.data.text()
error.response.data = JSON.parse(text)