aq-fe-framework 0.1.118 → 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,10 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
baseAxios_default,
|
3
3
|
useQ_AQ_GetAQModule
|
4
|
-
} from "./chunk-
|
5
|
-
import {
|
6
|
-
createGenericStore
|
7
|
-
} from "./chunk-Y3YGC5IH.mjs";
|
4
|
+
} from "./chunk-7EHNYA4A.mjs";
|
8
5
|
import {
|
9
6
|
U0DateToDDMMYYYString,
|
10
7
|
U0MyValidateEmail,
|
@@ -15,6 +12,9 @@ import {
|
|
15
12
|
import {
|
16
13
|
utils_notification_show
|
17
14
|
} from "./chunk-7ZCOFATU.mjs";
|
15
|
+
import {
|
16
|
+
createGenericStore
|
17
|
+
} from "./chunk-Y3YGC5IH.mjs";
|
18
18
|
import {
|
19
19
|
__objRest,
|
20
20
|
__spreadProps,
|
@@ -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,11 +65,11 @@ import {
|
|
65
65
|
useS_BasicAppShell,
|
66
66
|
useS_ButtonImport,
|
67
67
|
utils_layout_getItemsWithoutLinks
|
68
|
-
} from "../chunk-
|
69
|
-
import "../chunk-
|
70
|
-
import "../chunk-Y3YGC5IH.mjs";
|
68
|
+
} from "../chunk-JINO4V4J.mjs";
|
69
|
+
import "../chunk-7EHNYA4A.mjs";
|
71
70
|
import "../chunk-CJDXLINF.mjs";
|
72
71
|
import "../chunk-7ZCOFATU.mjs";
|
72
|
+
import "../chunk-Y3YGC5IH.mjs";
|
73
73
|
import "../chunk-FWCSY2DS.mjs";
|
74
74
|
export {
|
75
75
|
AQButtonCreateByImportFile,
|
package/dist/hooks/index.mjs
CHANGED
@@ -65,11 +65,11 @@ import {
|
|
65
65
|
useS_core60524,
|
66
66
|
useS_core83092,
|
67
67
|
utils_core83092_mergePage
|
68
|
-
} from "../chunk-
|
69
|
-
import "../chunk-
|
70
|
-
import "../chunk-Y3YGC5IH.mjs";
|
68
|
+
} from "../chunk-JINO4V4J.mjs";
|
69
|
+
import "../chunk-7EHNYA4A.mjs";
|
71
70
|
import "../chunk-CJDXLINF.mjs";
|
72
71
|
import "../chunk-7ZCOFATU.mjs";
|
72
|
+
import "../chunk-Y3YGC5IH.mjs";
|
73
73
|
import "../chunk-FWCSY2DS.mjs";
|
74
74
|
export {
|
75
75
|
F_Authenticate_Login,
|