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)}}`,
|
data: `{"trdb":${JSON.stringify(trdb)},"trc":${trc},"trb":${JSON.stringify(trb)}}`,
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
async: false,
|
async: false,
|
||||||
|
statusCode: {
|
||||||
|
401: function () {
|
||||||
|
location.href = "/auth";
|
||||||
|
}
|
||||||
|
},
|
||||||
success: function (resp) {
|
success: function (resp) {
|
||||||
output = resp;
|
output = resp;
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user