tx-sider 2.1.51 → 2.1.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/TXUI.mjs +5 -3
- package/lib/TXUI.umd.js +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -25993,16 +25993,18 @@ class Request {
|
|
|
25993
25993
|
clientId: "admin-client-demo",
|
|
25994
25994
|
clientSecret: "1q2w3e*"
|
|
25995
25995
|
});
|
|
25996
|
+
console.log("🚀 ~ Request ~ data:", data3);
|
|
25996
25997
|
if (data3.access_token) {
|
|
25997
25998
|
localStorage.setItem("token", data3.access_token);
|
|
25998
25999
|
localStorage.setItem("refresh_token", data3.refresh_token);
|
|
25999
26000
|
location.reload();
|
|
26000
26001
|
return;
|
|
26002
|
+
} else {
|
|
26003
|
+
router.push("/login");
|
|
26001
26004
|
}
|
|
26005
|
+
} else {
|
|
26006
|
+
router.push("/login");
|
|
26002
26007
|
}
|
|
26003
|
-
localStorage.removeItem("token");
|
|
26004
|
-
localStorage.removeItem("refresh_token");
|
|
26005
|
-
router.push("/login");
|
|
26006
26008
|
} else {
|
|
26007
26009
|
let tips = "";
|
|
26008
26010
|
if (error.response.status in httpCode) {
|