This commit is contained in:
2025-11-01 18:05:57 +08:00
parent d37218ec1b
commit 31fcedec7b

View File

@@ -63,13 +63,13 @@ Vue.use(selectscroll);
* you want to use MockJs for mock api * you want to use MockJs for mock api
* you can execute: mockXHR() * you can execute: mockXHR()
* *
* Currently MockJs will be used in the production environment, * Currently MockJs will be used in the development environment only,
* please remove it before going online ! ! ! * it's disabled in production
*/ */
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'development') {
const { const {
mockXHR mockXHR
} = require('../mock') } = require('../../mock')
mockXHR() mockXHR()
} }