beer-assembly-biz 1.1.1-alpha.10 → 1.1.1-alpha.11

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.
@@ -33,12 +33,16 @@ const App = (props) => {
33
33
  };
34
34
  const onConfirmLogin = async (code, slider) => {
35
35
  const params = form.getFieldsValue();
36
- const result = (await props?.requestLogin?.(code, slider, params)) || true;
37
- // 如果处理成功, 关闭Loading
38
- if (result) {
39
- setIsLoading(false);
36
+ const func = props?.requestLogin;
37
+ if (func !== undefined) {
38
+ const result = await func(code, slider, params);
39
+ if (!result) {
40
+ return false;
41
+ }
40
42
  }
41
- return result;
43
+ // 如果处理成功, 关闭Loading
44
+ setIsLoading(false);
45
+ return true;
42
46
  };
43
47
  return React.createElement(Form, { form: form },
44
48
  React.createElement(Form.Item, { name: "username", style: { marginBottom: 12 } },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-assembly-biz",
3
3
  "private": false,
4
- "version": "1.1.1-alpha.10",
4
+ "version": "1.1.1-alpha.11",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "pub-m": "tsc && cp -a src/icon ./dist && cp -a src/fonts ./dist && cp -a src/images ./dist && cp package.json ./dist/package.json && npm publish ./dist"