mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-21 19:16:37 +08:00
fix(projects): fix better-mock usage [修复better-mock用法]
This commit is contained in:
parent
c264216053
commit
c57640acd0
@ -1,4 +1,4 @@
|
|||||||
import { mock } from 'better-mock';
|
import betterMock from 'better-mock';
|
||||||
import type { MockMethod } from 'vite-plugin-mock';
|
import type { MockMethod } from 'vite-plugin-mock';
|
||||||
|
|
||||||
const apis: MockMethod[] = [
|
const apis: MockMethod[] = [
|
||||||
@ -6,7 +6,7 @@ const apis: MockMethod[] = [
|
|||||||
url: '/mock/getAllUserList',
|
url: '/mock/getAllUserList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
response: (): Service.MockServiceResult<ApiUserManagement.User[]> => {
|
response: (): Service.MockServiceResult<ApiUserManagement.User[]> => {
|
||||||
const data = mock({
|
const data = betterMock.mock({
|
||||||
'list|1000': [
|
'list|1000': [
|
||||||
{
|
{
|
||||||
id: '@id',
|
id: '@id',
|
||||||
|
Loading…
Reference in New Issue
Block a user