@ywfe/fe-tools 1.2.1-beta.31 → 1.2.1-beta.33

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@ywfe/fe-tools",
4
- "version": "1.2.1-beta.31",
4
+ "version": "1.2.1-beta.33",
5
5
  "description": "工具函数库",
6
6
  "main": "./lib/ywfe-tools.cjs",
7
7
  "module": "./lib/ywfe-tools.esm.js",
@@ -5,7 +5,6 @@ interface userInput {
5
5
  rules?: string;
6
6
  }
7
7
  async function userInputToJson({ input }: { input: userInput }) {
8
- console.log("input", input);
9
8
  const res: { message: string; success: boolean; data: any } =
10
9
  await request({
11
10
  input: {
@@ -14,11 +13,8 @@ async function userInputToJson({ input }: { input: userInput }) {
14
13
  params: input,
15
14
  },
16
15
  });
17
- if (res.success) {
18
- const result = res.data;
19
- return result.success ? result.data : result;
20
- } else {
21
- return res.success ? res.data : res;
22
- }
16
+ console.log('userINput1',res)
17
+ return res
18
+
23
19
  }
24
20
  export default userInputToJson