update package.json

This commit is contained in:
郑杰
2018-12-23 10:15:29 +08:00
parent 380fdbaf9c
commit a3c118e3a7
5 changed files with 8411 additions and 13 deletions

View File

@@ -1,21 +1,22 @@
# eladmin-qt
eladmin 前端源码,后端源码:[https://github.com/elunez/eladmin](https://github.com/elunez/eladmin)
eladmin 前端源码
#### 后端源码
- 码云: [https://gitee.com/elunez/eladmin](https://gitee.com/elunez/eladmin)
- github: [https://github.com/elunez/eladmin](https://github.com/elunez/eladmin)
#### 初始模板
前端模板基于花衩裤[https://github.com/PanJiaChen/vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
前端模板基于:[https://github.com/PanJiaChen/vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
## Build Setup
``` bash
# Clone project
git clone https://github.com/elunez/eladmin-qd
# Install dependencies
# 安装依赖
npm install
# Serve with hot reload at localhost:9528
# 启动服务 localhost:8013
npm run dev
# Build for production with minification
# 构建生产环境
npm run build
```

View File

@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"',
BASE_API: '"http://localhost"',
BASE_API: '"http://localhost:8000"',
})

View File

@@ -1,6 +1,6 @@
{
"name": "eladmin-qt",
"version": "1.0",
"version": "1.0.0",
"license": "Apache License 2.0",
"description": "eladmin 前端代码",
"author": "jie <zhengjie@tom.com>",
@@ -13,12 +13,13 @@
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
},
"repository": {
"type": "github",
"type": "git",
"url": "https://github.com/elunez/eladmin-qd"
},
"dependencies": {
"axios": "0.18.0",
"element-ui": "2.4.6",
"connect": "3.6.6",
"js-cookie": "2.2.0",
"normalize.css": "7.0.0",
"clipboard": "1.7.1",
@@ -46,7 +47,7 @@
"babel-plugin-transform-vue-jsx": "3.7.0",
"babel-preset-env": "1.7.0",
"babel-preset-stage-2": "6.24.1",
"cross-env": "^5.1.1",
"cross-env": "5.2.0",
"chalk": "2.4.1",
"copy-webpack-plugin": "4.5.2",
"css-loader": "1.0.0",

View File

@@ -32,7 +32,6 @@ router.beforeEach((to, from, next) => {
const asyncRouter = filterAsyncRouter(res)
asyncRouter.push({ path: '*', redirect: '/404', hidden: true })
store.dispatch('GenerateRoutes', asyncRouter).then(() => { // 存储路由
console.log(asyncRouter)
router.addRoutes(asyncRouter) // 动态添加可访问路由表
next({ ...to, replace: true })// hack方法 确保addRoutes已完成
})

8397
yarn.lock Normal file

File diff suppressed because it is too large Load Diff