mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
feat: add nginx detail status
This commit is contained in:
parent
241fa4adfe
commit
4e8346f04e
17 changed files with 1607 additions and 39 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue