update package.json
This commit is contained in:
17
README.md
17
README.md
@@ -1,21 +1,22 @@
|
|||||||
# eladmin-qt
|
# 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
|
## Build Setup
|
||||||
``` bash
|
``` bash
|
||||||
# Clone project
|
# 安装依赖
|
||||||
git clone https://github.com/elunez/eladmin-qd
|
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
npm install
|
npm install
|
||||||
|
|
||||||
# Serve with hot reload at localhost:9528
|
# 启动服务 localhost:8013
|
||||||
npm run dev
|
npm run dev
|
||||||
|
|
||||||
# Build for production with minification
|
# 构建生产环境
|
||||||
npm run build
|
npm run build
|
||||||
```
|
```
|
||||||
@@ -4,5 +4,5 @@ const prodEnv = require('./prod.env')
|
|||||||
|
|
||||||
module.exports = merge(prodEnv, {
|
module.exports = merge(prodEnv, {
|
||||||
NODE_ENV: '"development"',
|
NODE_ENV: '"development"',
|
||||||
BASE_API: '"http://localhost"',
|
BASE_API: '"http://localhost:8000"',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "eladmin-qt",
|
"name": "eladmin-qt",
|
||||||
"version": "1.0",
|
"version": "1.0.0",
|
||||||
"license": "Apache License 2.0",
|
"license": "Apache License 2.0",
|
||||||
"description": "eladmin 前端代码",
|
"description": "eladmin 前端代码",
|
||||||
"author": "jie <zhengjie@tom.com>",
|
"author": "jie <zhengjie@tom.com>",
|
||||||
@@ -13,12 +13,13 @@
|
|||||||
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
|
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "github",
|
"type": "git",
|
||||||
"url": "https://github.com/elunez/eladmin-qd"
|
"url": "https://github.com/elunez/eladmin-qd"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "0.18.0",
|
"axios": "0.18.0",
|
||||||
"element-ui": "2.4.6",
|
"element-ui": "2.4.6",
|
||||||
|
"connect": "3.6.6",
|
||||||
"js-cookie": "2.2.0",
|
"js-cookie": "2.2.0",
|
||||||
"normalize.css": "7.0.0",
|
"normalize.css": "7.0.0",
|
||||||
"clipboard": "1.7.1",
|
"clipboard": "1.7.1",
|
||||||
@@ -46,7 +47,7 @@
|
|||||||
"babel-plugin-transform-vue-jsx": "3.7.0",
|
"babel-plugin-transform-vue-jsx": "3.7.0",
|
||||||
"babel-preset-env": "1.7.0",
|
"babel-preset-env": "1.7.0",
|
||||||
"babel-preset-stage-2": "6.24.1",
|
"babel-preset-stage-2": "6.24.1",
|
||||||
"cross-env": "^5.1.1",
|
"cross-env": "5.2.0",
|
||||||
"chalk": "2.4.1",
|
"chalk": "2.4.1",
|
||||||
"copy-webpack-plugin": "4.5.2",
|
"copy-webpack-plugin": "4.5.2",
|
||||||
"css-loader": "1.0.0",
|
"css-loader": "1.0.0",
|
||||||
|
|||||||
@@ -32,7 +32,6 @@ router.beforeEach((to, from, next) => {
|
|||||||
const asyncRouter = filterAsyncRouter(res)
|
const asyncRouter = filterAsyncRouter(res)
|
||||||
asyncRouter.push({ path: '*', redirect: '/404', hidden: true })
|
asyncRouter.push({ path: '*', redirect: '/404', hidden: true })
|
||||||
store.dispatch('GenerateRoutes', asyncRouter).then(() => { // 存储路由
|
store.dispatch('GenerateRoutes', asyncRouter).then(() => { // 存储路由
|
||||||
console.log(asyncRouter)
|
|
||||||
router.addRoutes(asyncRouter) // 动态添加可访问路由表
|
router.addRoutes(asyncRouter) // 动态添加可访问路由表
|
||||||
next({ ...to, replace: true })// hack方法 确保addRoutes已完成
|
next({ ...to, replace: true })// hack方法 确保addRoutes已完成
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user