component-shipinlv 2.2.9 → 2.2.10
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/dist/Auth/index.d.ts +1 -0
- package/dist/Auth/index.js +3 -0
- package/dist/AuthClient/login-reg.d.ts +1 -0
- package/dist/AuthClient/login-reg.js +3 -0
- package/dist/AuthClient/login.d.ts +1 -0
- package/dist/AuthClient/login.js +2 -0
- package/dist/AuthClient/reg.d.ts +1 -0
- package/dist/AuthClient/reg.js +2 -0
- package/dist/typings/User.d.ts +1 -0
- package/package.json +1 -1
package/dist/Auth/index.d.ts
CHANGED
package/dist/Auth/index.js
CHANGED
@@ -30,6 +30,7 @@ var Auth = function Auth(_ref) {
|
|
30
30
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
31
31
|
loginTypeList = _ref.loginTypeList,
|
32
32
|
env = _ref.env,
|
33
|
+
roleType = _ref.roleType,
|
33
34
|
_ref$domain = _ref.domain,
|
34
35
|
domain = _ref$domain === void 0 ? document.location.hostname : _ref$domain,
|
35
36
|
_ref$onLoginSuccess = _ref.onLoginSuccess,
|
@@ -133,6 +134,7 @@ var Auth = function Auth(_ref) {
|
|
133
134
|
}));
|
134
135
|
onLoginSuccess();
|
135
136
|
Tool.event.run('login-success');
|
137
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"));
|
136
138
|
Tool.toast('登录成功');
|
137
139
|
};
|
138
140
|
var _useRequest = useRequest(function () {
|
@@ -325,6 +327,7 @@ var Auth = function Auth(_ref) {
|
|
325
327
|
children: /*#__PURE__*/_jsx(AuthLoginReg, {
|
326
328
|
env: env,
|
327
329
|
apiUrl: apiUrl,
|
330
|
+
roleType: roleType,
|
328
331
|
productType: productType,
|
329
332
|
clientUniqueKeyList: clientUniqueKeyList,
|
330
333
|
accountRegDisabled: !loginTypeList.includes('account-reg'),
|
@@ -11,6 +11,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
11
11
|
var env = _ref.env,
|
12
12
|
productType = _ref.productType,
|
13
13
|
apiUrl = _ref.apiUrl,
|
14
|
+
roleType = _ref.roleType,
|
14
15
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
15
16
|
_ref$activeKeyDefault = _ref.activeKeyDefault,
|
16
17
|
activeKeyDefault = _ref$activeKeyDefault === void 0 ? 'reg' : _ref$activeKeyDefault,
|
@@ -47,6 +48,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
47
48
|
children: [/*#__PURE__*/_jsx(Tabs.TabPane, {
|
48
49
|
tab: "\u767B\u5F55",
|
49
50
|
children: /*#__PURE__*/_jsx(AuthLogin, {
|
51
|
+
roleType: roleType,
|
50
52
|
env: env,
|
51
53
|
apiUrl: apiUrl,
|
52
54
|
productType: productType,
|
@@ -59,6 +61,7 @@ var AuthLoginReg = function AuthLoginReg(_ref) {
|
|
59
61
|
tab: "\u6CE8\u518C",
|
60
62
|
children: /*#__PURE__*/_jsx(Reg, {
|
61
63
|
env: env,
|
64
|
+
roleType: roleType,
|
62
65
|
productType: productType,
|
63
66
|
clientUniqueKeyList: clientUniqueKeyList,
|
64
67
|
onSuccess: function onSuccess() {
|
package/dist/AuthClient/login.js
CHANGED
@@ -46,6 +46,7 @@ var tailFormItemLayout = {
|
|
46
46
|
var AuthReg = function AuthReg(_ref) {
|
47
47
|
var env = _ref.env,
|
48
48
|
apiUrl = _ref.apiUrl,
|
49
|
+
roleType = _ref.roleType,
|
49
50
|
productType = _ref.productType,
|
50
51
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
51
52
|
_ref$onSuccess = _ref.onSuccess,
|
@@ -103,6 +104,7 @@ var AuthReg = function AuthReg(_ref) {
|
|
103
104
|
}));
|
104
105
|
Tool.toast('登录成功');
|
105
106
|
Tool.event.run('user-info');
|
107
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"));
|
106
108
|
onSuccess();
|
107
109
|
};
|
108
110
|
var onFinish = /*#__PURE__*/function () {
|
package/dist/AuthClient/reg.d.ts
CHANGED
package/dist/AuthClient/reg.js
CHANGED
@@ -42,6 +42,7 @@ var tailFormItemLayout = {
|
|
42
42
|
};
|
43
43
|
var Reg = function Reg(_ref) {
|
44
44
|
var env = _ref.env,
|
45
|
+
roleType = _ref.roleType,
|
45
46
|
productType = _ref.productType,
|
46
47
|
clientUniqueKeyList = _ref.clientUniqueKeyList,
|
47
48
|
_ref$onSuccess = _ref.onSuccess,
|
@@ -73,6 +74,7 @@ var Reg = function Reg(_ref) {
|
|
73
74
|
}));
|
74
75
|
Tool.toast('登录成功');
|
75
76
|
Tool.event.run('user-info');
|
77
|
+
Tool.event.run("".concat(roleType || 'user', "-login-success"));
|
76
78
|
onSuccess();
|
77
79
|
};
|
78
80
|
var onFinish = /*#__PURE__*/function () {
|
package/dist/typings/User.d.ts
CHANGED