@etsoo/materialui 1.2.81 → 1.2.83
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/app/IServiceUser.d.ts +1 -1
- package/lib/app/ISmartERPUser.d.ts +3 -3
- package/lib/messages/OperationMessageContainer.js +3 -1
- package/lib/messages/OperationMessageDto.d.ts +5 -0
- package/package.json +1 -1
- package/src/app/IServiceUser.ts +1 -1
- package/src/app/ISmartERPUser.ts +3 -3
- package/src/messages/OperationMessageContainer.tsx +6 -1
- package/src/messages/OperationMessageDto.ts +6 -0
|
@@ -4,10 +4,10 @@ import { IActionResult, IUser } from "@etsoo/appscript";
|
|
|
4
4
|
*/
|
|
5
5
|
export interface ISmartERPUser extends IUser {
|
|
6
6
|
/**
|
|
7
|
-
* Global user
|
|
8
|
-
*
|
|
7
|
+
* Global user GUID
|
|
8
|
+
* 全局用户GUID编号
|
|
9
9
|
*/
|
|
10
|
-
readonly uid
|
|
10
|
+
readonly uid: string;
|
|
11
11
|
/**
|
|
12
12
|
* Service refresh token
|
|
13
13
|
* 服务刷新令牌
|
|
@@ -22,7 +22,9 @@ export function OperationMessageContainer(props) {
|
|
|
22
22
|
const [types, callback, id] = handler;
|
|
23
23
|
if (id == null || id === message.id) {
|
|
24
24
|
// Check types & isSelf
|
|
25
|
-
if (isSelf ||
|
|
25
|
+
if (isSelf ||
|
|
26
|
+
!types.includes(message.operationType) ||
|
|
27
|
+
!refs.current.mounted)
|
|
26
28
|
return;
|
|
27
29
|
resetSeed();
|
|
28
30
|
refs.current.seed = window.setTimeout(callback, timeout);
|
package/package.json
CHANGED
package/src/app/IServiceUser.ts
CHANGED
package/src/app/ISmartERPUser.ts
CHANGED
|
@@ -5,10 +5,10 @@ import { IActionResult, IUser } from "@etsoo/appscript";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface ISmartERPUser extends IUser {
|
|
7
7
|
/**
|
|
8
|
-
* Global user
|
|
9
|
-
*
|
|
8
|
+
* Global user GUID
|
|
9
|
+
* 全局用户GUID编号
|
|
10
10
|
*/
|
|
11
|
-
readonly uid
|
|
11
|
+
readonly uid: string;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Service refresh token
|
|
@@ -51,7 +51,12 @@ export function OperationMessageContainer(
|
|
|
51
51
|
const [types, callback, id] = handler;
|
|
52
52
|
if (id == null || id === message.id) {
|
|
53
53
|
// Check types & isSelf
|
|
54
|
-
if (
|
|
54
|
+
if (
|
|
55
|
+
isSelf ||
|
|
56
|
+
!types.includes(message.operationType) ||
|
|
57
|
+
!refs.current.mounted
|
|
58
|
+
)
|
|
59
|
+
return;
|
|
55
60
|
|
|
56
61
|
resetSeed();
|
|
57
62
|
|