feat(web): redirect client when TDBMS response status is 401

This commit is contained in:
Masahiko AMANO 2023-02-03 16:39:39 +03:00
parent dc937444e5
commit 94105491af

View File

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