The code is too ugly. It is not recommended to copy it. You can take a look at the implementation of RBAC. This is common.
Quasar-Framework is an open source front-end framework developed based on Vue.js. It can help Web developers quickly create the following websites: responsive website, progressive application, mobile application (through Cordova), cross-platform applications (via Electron) Essence Quasar allows developers to publish to multiple platforms Website, PWA, Mobile App and Electron APP when they only write only once. When using Quasar, you don't even need to have Hammerjs, Momentjs, or Bootstrap. Things, you can use it very simple. Vue-QUASAR-Admin is a set of background management systems contained in general permissions control based on Quasar-Framework (currently only for the PC end).
online demo
Login account:
admin 123
test 123456
website_admin 123456
Please do not modify the account name at will.
.
├── .quasar Quasar CLI生成的配置
└── src
├── assets 资源文件
├── components 自定义组件
├── css 样式文件
├── layout 布局组件
├── libs 工具方法
├── router 路由配置
├── store 状态管理
├── service API管理
├── plugins 需要全局注册的组件、指令、插件
└── pages
├── cms
│ └── 文章管理
├── develop
│ ├── 官方组件
│ └── 业务组件
├── organization
│ ├── 部门管理
│ └── 职位管理
├── other
│ └── 审计日志
├── permission
│ ├── 功能管理
│ ├── 角色管理
│ ├── 角色权限管理
│ ├── 角色用户管理
│ └── 用户角色管理
├── system
│ ├── 菜单管理
├── user
│ └── 用户管理
├── 403 无权限页面
├── index 首页
└── login 登录页
npm install -g vue-cli
npm install -g quasar-cli
npm install
quasar dev
quasar build
Background program
git clone https://github.com/wjkang/quasar-admin-server.git
npm install
npm run start
npm run production
The back -end program is constructed using KOA2, and LOWDB is used to persist data to the JSON file (the JSON file is stored to quickly build DEMO).
You can view the source code for more details