Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王淑敏
vipSupplier
Commits
62f1af57
Commit
62f1af57
authored
5 years ago
by
初志鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deploy
parent
ef4ec616
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
src/main.js
+9
-1
No files found.
src/main.js
View file @
62f1af57
...
@@ -5,7 +5,15 @@ import App from "./App";
...
@@ -5,7 +5,15 @@ import App from "./App";
import
store
from
"./store"
;
import
store
from
"./store"
;
import
router
from
"./router"
;
import
router
from
"./router"
;
import
"./plugins"
;
import
"./plugins"
;
if
(
process
.
env
.
NODE_ENV
===
"preview"
)
{
/**
* @copyright chuzhixin 1204505056@qq.com
* @description 生产环境与演示环境默认都使用mock,如果正式用于生产环境时,记得去掉
*/
if
(
process
.
env
.
NODE_ENV
===
"preview"
&&
process
.
env
.
NODE_ENV
===
"production"
)
{
const
{
mockXHR
}
=
require
(
"../mock/static"
);
const
{
mockXHR
}
=
require
(
"../mock/static"
);
mockXHR
();
mockXHR
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment