Skip to content

Commit

Permalink
update: update request code block
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 committed Jan 12, 2024
1 parent d1524ce commit ca99891
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/home/request.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
lang: langSetup("home", "request"),
code1: `import { request } from "@fastjs/core";
request("https://catfact.ninja/fact").then(res => msg(res.data.fact));`
request.get("https://catfact.ninja/fact").then(res => msg(res.data.fact));`
}
},
methods: {
Expand Down

0 comments on commit ca99891

Please sign in to comment.