feat(web): redirect client when TDBMS response status is 401
This commit is contained in:
parent
dc937444e5
commit
94105491af
@ -7,6 +7,11 @@ function tdb_query(trdb, trc, trb) {
|
||||
data: `{"trdb":${JSON.stringify(trdb)},"trc":${trc},"trb":${JSON.stringify(trb)}}`,
|
||||
dataType: "json",
|
||||
async: false,
|
||||
statusCode: {
|
||||
401: function () {
|
||||
location.href = "/auth";
|
||||
}
|
||||
},
|
||||
success: function (resp) {
|
||||
output = resp;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user