资源简介

此资源仅是为了配合iView-Admin正常运行而创建的Express服务端,取代了iView-Admin中原有Mock,便于和我一样的菜鸟观察iView-Admin与服务器之间的按口。
使用方法为:首先要有Express环境。下载此压缩包后先解压,然后运行压缩包中的start_server.bat(或者直接SET DEBUG=iview-admin-server:* & npm start也是一样的)。
iView-Admin需要作以下修改
1. 修改src\config\index.js,将dev: 'https://www.easy-mock.com/mock/5add9213ce4d0e69998a6f51/iview-admin/'改为dev: 'http://localhost:3000';
2. 删除或者注释掉\src\main.js中的if (process.env.NODE_ENV !== 'production') require('@/mock')

资源截图

代码片段和文件信息

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-16 17:29  iview-admin-server\
     文件        1283  2019-03-16 13:52  iview-admin-server\app.js
     目录           0  2019-01-31 21:43  iview-admin-server\bin\
     文件        1604  2019-03-16 17:36  iview-admin-server\bin\www
     目录           0  2019-02-18 22:25  iview-admin-server\node_modules\
     目录           0  2019-01-31 21:43  iview-admin-server\node_modules\.bin\
     文件         293  2019-01-31 14:37  iview-admin-server\node_modules\.bin\mime
     文件         170  2019-01-31 14:37  iview-admin-server\node_modules\.bin\mime.cmd
     目录           0  2019-01-31 21:43  iview-admin-server\node_modules\accepts\
     文件        4736  2018-03-01 09:14  iview-admin-server\node_modules\accepts\HISTORY.md
     文件        5252  2017-04-01 12:27  iview-admin-server\node_modules\accepts\index.js
     文件        1167  2017-04-01 11:21  iview-admin-server\node_modules\accepts\LICENSE
     文件        2288  2019-03-16 17:38  iview-admin-server\node_modules\accepts\package.json
     文件        4130  2017-04-01 12:37  iview-admin-server\node_modules\accepts\README.md
     目录           0  2019-01-31 21:43  iview-admin-server\node_modules\array-flatten\
     文件        1195  2015-07-10 05:41  iview-admin-server\node_modules\array-flatten\array-flatten.js
     文件        1103  2014-03-16 01:35  iview-admin-server\node_modules\array-flatten\LICENSE
     文件        1666  2019-03-16 17:40  iview-admin-server\node_modules\array-flatten\package.json
     文件        1245  2015-05-10 05:45  iview-admin-server\node_modules\array-flatten\README.md
     目录           0  2019-01-31 21:43  iview-admin-server\node_modules\basic-auth\
     文件        1052  1985-10-26 16:15  iview-admin-server\node_modules\basic-auth\HISTORY.md
     文件        2361  1985-10-26 16:15  iview-admin-server\node_modules\basic-auth\index.js
     文件        1206  1985-10-26 16:15  iview-admin-server\node_modules\basic-auth\LICENSE
     文件        2043  2019-03-16 17:40  iview-admin-server\node_modules\basic-auth\package.json
     文件        3192  1985-10-26 16:15  iview-admin-server\node_modules\basic-auth\README.md
     目录           0  2019-02-18 21:15  iview-admin-server\node_modules\bignumber.js\
     文件       48820  2017-09-03 17:06  iview-admin-server\node_modules\bignumber.js\bignumber.d.ts
     文件       99742  2017-09-27 02:30  iview-admin-server\node_modules\bignumber.js\bignumber.js
     文件       34548  2017-08-31 02:22  iview-admin-server\node_modules\bignumber.js\bignumber.js.map
     文件       17694  2017-09-27 05:20  iview-admin-server\node_modules\bignumber.js\bignumber.min.js
     文件       90451  2017-09-27 02:30  iview-admin-server\node_modules\bignumber.js\bignumber.mjs
............此处省略945个文件信息

评论

共有 条评论