Skip to content

Commit

Permalink
fix: 修复类型判断
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Mar 6, 2022
1 parent f4c3dff commit 14a2ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { createFetchSever } from '../../presets/shared/mock'

const shouldCreateServer =
!import.meta.env.DEV &&
import.meta.env.VITE_APP_MOCK_IN_PRODUCTION
import.meta.env.VITE_APP_MOCK_IN_PRODUCTION === 'true'

// 生产环境时才创建服务
if (shouldCreateServer) {
Expand Down

0 comments on commit 14a2ebe

Please sign in to comment.