当前位置:网站首页>General process of background management system permission setting
General process of background management system permission setting
2022-07-27 17:24:00 【Mr_ ZCheng】
User management : Add, delete, modify and check the account number , Assign roles to this account
Role management : The addition, deletion, modification and query of roles , Assign permission data to this role
Rights management : Add, delete, modify and query the pages that need permission management
Permission management is divided into three parts
api
Main backend processing ,
front end : Response interception unified error handling
route
The route is divided into two parts
Static routing : Routes that do not require access
Dynamic routing : Routes that require access
By default, there are only static routes
After getting user information
The user information contains the data of the permission page that the current user can access
The route information of the accessible page is matched with the dynamic route
adopt addRoutes Add to route dynamically
There are some pits
The newly added route cannot be used immediately. You need to go through the navigation guard again :
Solution :next(to.fullPath)
404 problem ( The newly added cannot be used immediately , If the static route contains * matching 404, You'll jump right to 404)
Solution : The... In the static route 04 Match delete , adopt addRoutes Add to the end
Menu questions
In the early The menu uses this.$router.options.routes,
The value is not responsive , The menu is not updated accordingly
Solution
adopt vuex Store routing configuration data ( Keep synchronization with routing configuration )
Use vuex The route configuration in realizes responsive routing
Exit to switch the previous account addRoutes The added route can also use
Solution : Reset route on exit
Button
Through user-defined instructions, when the button permission information of user information contains the current button id Normal display at , If it is not included, it will not be displayed
v-if/v-show mixin It's fine too
边栏推荐
- High precision timer
- The chess robot broke the finger of a 7-year-old boy. Netizen: it violated the first law of robots
- Mpc5744p clock module
- ES6 array method and pseudo array to array method
- Niuke topic -- binary search tree and bidirectional linked list
- 2021-06-18 SSM项目中自动装配错误
- Complete steps of JDBC program implementation
- 通过 FileUploader 的初始化,了解 SAP UI5 应用的 StaticArea 初始化逻辑
- 移动端页面布局
- Niuke topic -- symmetric binary tree
猜你喜欢

神经网络实现手写数字分类matlab

阿里巴巴鹰眼系统简介

App Crash收集和分析

How does vs2019 C language run multiple projects at the same time, how to add multiple source files containing main functions in a project and debug and run them respectively

Kubernetes第八篇:使用kubernetes部署NFS系统完成数据库持久化(Kubernetes工作实践类)

Shell编程规范与变量

High cost, difficult to implement, slow to take effect, what about open source security?

诸神黄昏,“猫抖快”告别大V时代

如何通过C#/VB.NET从PDF中提取表格

基于STM32的智能鱼缸设计
随机推荐
Character stream read file
Svm+surf+k-means flower classification (matlab)
Niuke topic -- Realizing queues with two stacks, stacks containing min functions, and valid bracket sequences
Swift QQ授权登录 坑集
通过 FileUploader 的初始化,了解 SAP UI5 应用的 StaticArea 初始化逻辑
Coca Cola's primary challenge is not vitality forest
The chess robot broke the finger of a 7-year-old boy. Netizen: it violated the first law of robots
App crash collection and analysis
Flex弹性盒布局
腾讯云上传使用
Day 7 summary & homework
js中的函数
三表联查2
Project exercise: the function of checking and modifying tables
技术实践干货 | 从工作流到工作流
Behind every piece of information you collect, you can't live without TA
Flex flex flex box layout
Chen Yili of ICT Institute: reducing cost and increasing efficiency is the greatest value of cloud native applications
Maximum number less than n
Unity 入门