A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/PanJiaChen/vue-element-admin/commit/4ef0782189004e98cf427fd5eafc908d0a14a7d6 below:

use mockjs in production environment · PanJiaChen/vue-element-admin@4ef0782 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-4

lines changed Original file line number Diff line number Diff line change

@@ -21,12 +21,16 @@ import * as filters from './filters' // global filters

21 21 22 22

/**

23 23

* If you don't want to use mock-server

24 -

* you want to use mockjs for request interception

25 -

* you can execute:

24 +

* you want to use MockJs for mock api

25 +

* you can execute: mockXHR()

26 26

*

27 -

* import { mockXHR } from '../mock'

28 -

* mockXHR()

27 +

* Currently MockJs will be used in the production environment,

28 +

* please remove it before going online! ! !

29 29

*/

30 +

import { mockXHR } from '../mock'

31 +

if (process.env.NODE_ENV === 'production') {

32 +

mockXHR()

33 +

}

30 34 31 35

Vue.use(Element, {

32 36

size: Cookies.get('size') || 'medium' // set element-ui default size

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4