Skip to content

Commit

Permalink
fix(projects): fix better-mock usage [修复better-mock用法]
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed May 6, 2023
1 parent c264216 commit c57640a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mock/api/management.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { mock } from 'better-mock';
import betterMock from 'better-mock';
import type { MockMethod } from 'vite-plugin-mock';

const apis: MockMethod[] = [
{
url: '/mock/getAllUserList',
method: 'post',
response: (): Service.MockServiceResult<ApiUserManagement.User[]> => {
const data = mock({
const data = betterMock.mock({
'list|1000': [
{
id: '@id',
Expand Down

1 comment on commit c57640a

@vercel
Copy link

@vercel vercel bot commented on c57640a May 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.