feat: mock动态开关

This commit is contained in:
taoran
2023-11-30 14:23:32 +08:00
parent 7279a85274
commit f3bdf85c93
6 changed files with 32 additions and 24 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export default defineConfig(({command, mode}) => {
}),
//mock
viteMockServe({
localEnabled: command === 'serve',
localEnabled: env.VITE_IS_MOCK == 'true' ? command === 'serve' : false,
}),
//修改html插件
createHtmlPlugin({