Skip to content

Commit 5bf571e

Browse files
committed
fix: 线上也是用mock数据
1 parent fd26d2d commit 5bf571e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ import { formatTime } from 'filters/tools';
1111
import adminAuth from 'directives/auth';
1212
import AdminIcon from 'components/icon';
1313

14-
if (process.env.NODE_ENV === 'development') {
15-
// require是同步引入 , async返回的还是一个Promise
16-
require('mock');
17-
}
14+
// if (process.env.NODE_ENV === 'development') {
15+
// // require是同步引入 , async返回的还是一个Promise
16+
// require('mock');
17+
// }
18+
import 'mock';
1819
import 'router/permission';
1920

2021
Vue.use(ElementUI);

0 commit comments

Comments
 (0)