@ywfe/fe-tools 1.2.1-beta.21 → 1.2.1-beta.22
Sign up to get free protection for your applications and to get access to all the features.
- package/index.ts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/userInputToJson.d.ts +1 -1
- package/lib/ywfe-tools.cjs +22 -16
- package/lib/ywfe-tools.cjs.map +1 -1
- package/lib/ywfe-tools.esm.js +22 -16
- package/lib/ywfe-tools.esm.js.map +1 -1
- package/package.json +1 -1
- package/userInputToJson.ts +8 -7
package/package.json
CHANGED
package/userInputToJson.ts
CHANGED
@@ -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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
return
|
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
|