Skip to content
🎨 基于vue2.x element-ui 的后台系统 包含侧边栏权限过滤等常用组件
Vue JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build fixed the fonts path error after build Jan 6, 2019
config Update webpack4 and related depdence Jan 5, 2019
server 新增本地server服务,Update README.md Jul 17, 2018
src
static Add coding page, 修复问题,增加用户信息管理模块 May 12, 2018
test Fixed some bug Jun 24, 2018
.babelrc merge all Mar 28, 2018
.editorconfig merge all Mar 28, 2018
.eslintignore add vue-wave for click; add LICNSE Apr 18, 2018
.eslintrc.js
.gitignore Add github Link in Dashboard May 20, 2018
.postcssrc.js merge all Mar 28, 2018
.travis.yml cache the node_moudles in CI build Jan 20, 2019
LICENSE add vue-wave for click; add LICNSE Apr 18, 2018
README.md Update README Mar 24, 2019
favicon.ico merge all Mar 28, 2018
index.html Remove test link index.html Jun 2, 2018
package-lock.json upgrade dependencies Jun 3, 2019
package.json upgrade dependencies Jun 3, 2019

README.md

Vue-element-admin

vue element-ui license

vue-cli + element-ui 后台开发项目 本项目不适合作为后台模板使用,只作为后台解决方案的一种 本方案模板页:模板页

本地使用

// download files
git clone https://github.com/BiYuqi/vue-element-admin.git

cd vue-element-admin

// install dependencies
npm install

// start local server
npm run server

// serve with hot reload at localhost:8080
npm run dev

// build for production with minification
npm run build

// analyze bundle details
npm run analyz

本地起服务(必须)

npm run server 由于easy-mock服务非常不稳定,所以本地新增node模拟接口

server文件夹

  • 为本地node服务,本地npm run dev后,需要在server目录 node app 来启动本地服务,以便登录正常进行
  • 以下为utils/request.js文件配置
  • 执行 npm run app 即可
// base setting
const BASE_URL = process.env.NODE_ENV === 'production'
  ? 'https://easy-mock.com/mock/5aa881eb99ed355f274d0e93'
  : 'http://localhost:1234'
const service = axios.create({
  baseURL: BASE_URL,
  timeout: 10000
})

Change Log

2019.1.6

  • 升级webpack4等相关依赖
  • 重新配置production打包环境
  • 升级vue, vue-loader

TODO

  • 重写router加载逻辑, 支持纯后台返回, 前端只做校验
  • 更新脚手架vue-cli3

DEMO

You can’t perform that action at this time.