mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-01-24 02:00:25 +08:00
12 lines
392 B
TypeScript
12 lines
392 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';
|
|
|
|
/**
|
|
* Used in a production environment. Need to manually import all modules
|
|
*/
|
|
export function setupProdMockServer() {
|
|
createProdMockServer([...userMock, ...menuMock, ...tableDemoMock]);
|
|
}
|