mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 19:41:59 +08:00
fix(projects): 修复mock生产环境数据问题
This commit is contained in:
parent
9e7de0451d
commit
32adc98468
@ -1,7 +1,9 @@
|
||||
import { viteMockServe } from 'vite-plugin-mock';
|
||||
import { viteMockServe } from 'vite-plugin-mock'; // https://github.com/vbenjs/vite-plugin-mock/blob/main/README.zh_CN.md
|
||||
|
||||
export default viteMockServe({
|
||||
mockPath: 'mock',
|
||||
watchFiles: true, // 监视文件更改
|
||||
// localEnabled: command === 'serve',
|
||||
injectCode: `
|
||||
import { setupMockServer } from '../mock';
|
||||
setupMockServer();
|
||||
`,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user