fe-drone-ci/src
zthxxx 330dc7e921 refactor(mock): mak mock api compatible with both web-view and webpack server
1. 把 Mockjs 功能移到 server 端中间件,同时也兼容前端直接劫持 XHR
2. dev 环境下默认作为 express 中间件通过 webpack server 提供 mock api
3. prod 构建时,默认在前端用 Mockjs 劫持 XHR

benefits:
  - dev 开发调试时能直接看到 XHR 请求,方便调试网络,能和后端对接联调
  - 避开在开发时因为 Mockjs 引起的网络 bug
  - prod 构建时劫持 XHR,保证本项目的 Github Pages preview 能正常显示 (逻辑和 error-log 一样)
  - 前后台使用的 mock 是同一份代码,不会增加维护负担

ref: [#562](https://github.com/PanJiaChen/vue-element-admin/issues/562#issuecomment-378116233)
2018-10-21 20:56:29 +08:00
..
api refactor example demo (#713) 2018-05-30 15:25:08 +08:00
assets remove unnecessary assets 2018-10-08 18:19:48 +08:00
components Merge branch 'master' into deploy 2018-10-19 14:56:37 +08:00
directive tweak spelling mistake 2018-09-03 15:03:00 +08:00
filters tweak spelling mistake 2018-09-03 15:03:00 +08:00
icons refactor: svg icons (#1096) 2018-09-17 13:07:11 +08:00
lang feature: support Spanish(#1196) 2018-10-15 10:10:50 +08:00
router tweak spelling mistake 2018-09-03 15:03:00 +08:00
store refine[permission.js]: switch roles will refresh the sidebar correctly (#1067) 2018-09-17 17:46:20 +08:00
styles perf[sidebar]: hightlight submenu when is active (#1154) 2018-10-08 18:19:48 +08:00
utils refactor(mock): mak mock api compatible with both web-view and webpack server 2018-10-21 20:56:29 +08:00
vendor feature[Excel]: support bookType option (#1144) 2018-10-08 18:19:48 +08:00
views fix: fix import driver.js in guide page 2018-10-21 20:17:14 +08:00
App.vue refactor: add eslint-plugin-vue && lint code (#976) 2018-08-19 16:55:24 +08:00
errorLog.js chore: in dev disable errorLog 2018-08-29 11:12:15 +08:00
main.js refactor(mock): mak mock api compatible with both web-view and webpack server 2018-10-21 20:56:29 +08:00
permission.js feature: add a redirect url when not logged in (#1046) 2018-09-07 17:15:47 +08:00