msw教程
1 | pnpm add -D @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-msw @graphql-codegen/typescript-operations msw @graphql-tools/utils |
1 | pnpm add @urql/vue graphql graphql-tag |
- Ensure mockServiceWorker.js is in your public directory.
1
npx msw init public/
codegen.ts
1 | // codegen.ts |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 世界尽头のWasteland!
评论