aq-fe-framework 0.1.117 → 0.1.119
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.
@@ -8,7 +8,7 @@ var baseAxios = axios.create({
|
|
8
8
|
baseAxios.interceptors.request.use(
|
9
9
|
(config) => {
|
10
10
|
var _a, _b;
|
11
|
-
const tokenData = localStorage.getItem("
|
11
|
+
const tokenData = localStorage.getItem("useS_Authenticate");
|
12
12
|
const state = JSON.parse(tokenData);
|
13
13
|
const token = (_b = (_a = state == null ? void 0 : state.state) == null ? void 0 : _a.state) == null ? void 0 : _b.token;
|
14
14
|
if (token) {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
baseAxios_default,
|
3
3
|
useQ_AQ_GetAQModule
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-7EHNYA4A.mjs";
|
5
5
|
import {
|
6
6
|
U0DateToDDMMYYYString,
|
7
7
|
U0MyValidateEmail,
|
@@ -11193,7 +11193,7 @@ import { useRouter as useRouter4 } from "next/navigation";
|
|
11193
11193
|
// src/modules-features/Authenticate/useS_Authenticate.ts
|
11194
11194
|
var useStore6 = createGenericStore({
|
11195
11195
|
initialState: { token: "" },
|
11196
|
-
storageKey: "
|
11196
|
+
storageKey: "useS_Authenticate"
|
11197
11197
|
});
|
11198
11198
|
function useS_Authenticate() {
|
11199
11199
|
const store = useStore6();
|
@@ -11265,7 +11265,7 @@ function F_Authenticate_Login({
|
|
11265
11265
|
onSuccess
|
11266
11266
|
}) {
|
11267
11267
|
const router = useRouter6();
|
11268
|
-
const
|
11268
|
+
const authenticate_store = useS_Authenticate();
|
11269
11269
|
const loadingState = useState17(false);
|
11270
11270
|
const mutation = useM_Account_Sigin();
|
11271
11271
|
const form = useForm20({
|
@@ -11296,10 +11296,10 @@ function F_Authenticate_Login({
|
|
11296
11296
|
loadingState[1](false);
|
11297
11297
|
return;
|
11298
11298
|
}
|
11299
|
-
|
11300
|
-
|
11301
|
-
|
11302
|
-
|
11299
|
+
authenticate_store.setProperty("code", data.data.userName);
|
11300
|
+
authenticate_store.setProperty("fullName", data.data.userFullName);
|
11301
|
+
authenticate_store.setProperty("userId", data.data.userId);
|
11302
|
+
authenticate_store.setProperty("token", data.data.token);
|
11303
11303
|
if (onSuccess) {
|
11304
11304
|
onSuccess(data);
|
11305
11305
|
loadingState[1](false);
|
@@ -65,8 +65,8 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
69
|
-
import "../chunk-
|
68
|
+
} from "../chunk-JINO4V4J.mjs";
|
69
|
+
import "../chunk-7EHNYA4A.mjs";
|
70
70
|
import "../chunk-CJDXLINF.mjs";
|
71
71
|
import "../chunk-7ZCOFATU.mjs";
|
72
72
|
import "../chunk-Y3YGC5IH.mjs";
|
package/dist/hooks/index.mjs
CHANGED
@@ -65,8 +65,8 @@ import {
|
|
65
65
|
useS_core60524,
|
66
66
|
useS_core83092,
|
67
67
|
utils_core83092_mergePage
|
68
|
-
} from "../chunk-
|
69
|
-
import "../chunk-
|
68
|
+
} from "../chunk-JINO4V4J.mjs";
|
69
|
+
import "../chunk-7EHNYA4A.mjs";
|
70
70
|
import "../chunk-CJDXLINF.mjs";
|
71
71
|
import "../chunk-7ZCOFATU.mjs";
|
72
72
|
import "../chunk-Y3YGC5IH.mjs";
|