mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
fix(projects): fix better-mock usage [修复better-mock用法]
This commit is contained in:
@ -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',
|
||||||
|
Reference in New Issue
Block a user