mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-23 20:00:19 +08:00
20 lines
551 B
TypeScript
20 lines
551 B
TypeScript
import { createProdMockServer } from 'vite-plugin-mock/es/createProdMockServer';
|
|
import userMock from './sys/user';
|
|
import menuMock from './sys/menu';
|
|
import tableDemoMock from './demo/table-demo';
|
|
import accountDemoMock from './demo/account';
|
|
import selectDemoMock from './demo/select-demo';
|
|
|
|
/**
|
|
* Used in a production environment. Need to manually import all modules
|
|
*/
|
|
export function setupProdMockServer() {
|
|
createProdMockServer([
|
|
...userMock,
|
|
...menuMock,
|
|
...tableDemoMock,
|
|
...accountDemoMock,
|
|
...selectDemoMock,
|
|
]);
|
|
}
|