@ywfe/fe-tools 1.2.1-beta.6 → 1.2.1-beta.7

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.6",
4
+ "version": "1.2.1-beta.7",
5
5
  "description": "工具函数库",
6
6
  "main": "./lib/ywfe-tools.cjs",
7
7
  "module": "./lib/ywfe-tools.esm.js",
@@ -1,3 +1,4 @@
1
+ import {request} from './index'
1
2
  // Ctrl-S保存代码
2
3
  interface userInput {
3
4
  userInput?:string,
@@ -5,12 +6,12 @@ interface userInput {
5
6
  }
6
7
  async function userInputToJson({input}:{input:userInput}){
7
8
  const {userInput, rules} = input
8
- //const res = await fetools.request({
9
- //input:{
10
- //url:"https://fc-typechat.ywwl.com/userInputToJson",
11
- //method:"GET"
12
- //}
13
- //})
14
- return "2"
9
+ const res = await request({
10
+ input:{
11
+ url:"https://fc-typechat.ywwl.com/userInputToJson",
12
+ method:"GET"
13
+ }
14
+ })
15
+ return res;
15
16
  }
16
17
  export default userInputToJson