tx-sider 2.1.51 โ 2.1.52
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 +18 -12
- package/lib/TXUI.umd.js +1 -1
- package/package.json +1 -1
package/lib/TXUI.mjs
CHANGED
|
@@ -8206,7 +8206,7 @@ const Trigger = defineComponent({
|
|
|
8206
8206
|
childOriginEvents: {}
|
|
8207
8207
|
};
|
|
8208
8208
|
},
|
|
8209
|
-
data: function
|
|
8209
|
+
data: function data2() {
|
|
8210
8210
|
var _this = this;
|
|
8211
8211
|
var _a, _b;
|
|
8212
8212
|
var props = this.$props;
|
|
@@ -24586,16 +24586,16 @@ var mergeConfig$2 = function mergeConfig(config1, config2) {
|
|
|
24586
24586
|
});
|
|
24587
24587
|
return config;
|
|
24588
24588
|
};
|
|
24589
|
-
var
|
|
24589
|
+
var data$1;
|
|
24590
24590
|
var hasRequiredData;
|
|
24591
24591
|
function requireData() {
|
|
24592
24592
|
if (hasRequiredData)
|
|
24593
|
-
return
|
|
24593
|
+
return data$1;
|
|
24594
24594
|
hasRequiredData = 1;
|
|
24595
|
-
|
|
24595
|
+
data$1 = {
|
|
24596
24596
|
"version": "0.26.1"
|
|
24597
24597
|
};
|
|
24598
|
-
return
|
|
24598
|
+
return data$1;
|
|
24599
24599
|
}
|
|
24600
24600
|
var VERSION$1 = requireData().version;
|
|
24601
24601
|
var validators$1 = {};
|
|
@@ -25988,21 +25988,23 @@ class Request {
|
|
|
25988
25988
|
localStorage.removeItem("refresh_token");
|
|
25989
25989
|
console.log("๐ ~ Request ~ refresh_token:", refresh_token);
|
|
25990
25990
|
if (refresh_token) {
|
|
25991
|
-
const
|
|
25991
|
+
const data22 = await refreshToken({
|
|
25992
25992
|
refreshToken: refresh_token,
|
|
25993
25993
|
clientId: "admin-client-demo",
|
|
25994
25994
|
clientSecret: "1q2w3e*"
|
|
25995
25995
|
});
|
|
25996
|
-
|
|
25997
|
-
|
|
25998
|
-
localStorage.setItem("
|
|
25996
|
+
console.log("๐ ~ Request ~ data:", data22);
|
|
25997
|
+
if (data22.access_token) {
|
|
25998
|
+
localStorage.setItem("token", data22.access_token);
|
|
25999
|
+
localStorage.setItem("refresh_token", data22.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) {
|
|
@@ -26020,6 +26022,10 @@ class Request {
|
|
|
26020
26022
|
return Promise.reject(error);
|
|
26021
26023
|
}
|
|
26022
26024
|
);
|
|
26025
|
+
console.log("๐ ~ Request ~ data:", data);
|
|
26026
|
+
console.log("๐ ~ Request ~ data:", data);
|
|
26027
|
+
console.log("๐ ~ Request ~ data:", data);
|
|
26028
|
+
console.log("๐ ~ Request ~ data:", data);
|
|
26023
26029
|
}
|
|
26024
26030
|
/**
|
|
26025
26031
|
* @description: ่ทๅๆๅฎ url ๅจ cancelRequestSourceList ไธญ็็ดขๅผ
|