mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-09-15 17:19:46 +08:00
deploy
This commit is contained in:
parent
ef4ec61649
commit
62f1af57c8
10
src/main.js
10
src/main.js
@ -5,7 +5,15 @@ import App from "./App";
|
||||
import store from "./store";
|
||||
import router from "./router";
|
||||
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");
|
||||
mockXHR();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user