vue-vben-admin/mock/_createProductionServer.ts
2020-10-29 23:01:11 +08:00

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]);
}