mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-10-12 04:43:42 +08:00
fix(projects): add prod mockjs switch [添加生产模式的mockjs的开关]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import betterMock from 'better-mock';
|
||||
import { mock } from 'mockjs';
|
||||
import type { MockMethod } from 'vite-plugin-mock';
|
||||
|
||||
const apis: MockMethod[] = [
|
||||
@@ -6,7 +6,7 @@ const apis: MockMethod[] = [
|
||||
url: '/mock/getAllUserList',
|
||||
method: 'post',
|
||||
response: (): Service.MockServiceResult<ApiUserManagement.User[]> => {
|
||||
const data = betterMock.mock({
|
||||
const data = mock({
|
||||
'list|1000': [
|
||||
{
|
||||
id: '@id',
|
||||
|
Reference in New Issue
Block a user