|
|
@ -23,8 +23,8 @@ import '@/permission' // permission control
|
|
|
|
* Currently MockJs will be used in the production environment,
|
|
|
|
* Currently MockJs will be used in the production environment,
|
|
|
|
* please remove it before going online ! ! !
|
|
|
|
* please remove it before going online ! ! !
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
import { mockXHR } from '../mock'
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
|
|
|
|
|
|
const { mockXHR } = require('../mock')
|
|
|
|
mockXHR()
|
|
|
|
mockXHR()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|