vue-element-admin-site | : pencil : The documentation source of vue-element-admin | User Interface library
kandi X-RAY | vue-element-admin-site Summary
kandi X-RAY | vue-element-admin-site Summary
:pencil: The documentation source of vue-element-admin
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vue-element-admin-site
vue-element-admin-site Key Features
vue-element-admin-site Examples and Code Snippets
Community Discussions
Trending Discussions on vue-element-admin-site
QUESTION
What is the best practice in terms of security to dynamically fully load router routes?
- Retrieve all routes from backend and use router.addRoutes without hardcoding them at client?
- Create the normal routes and filter through them? (Wouldn't this still have the entire router routes available at client for malicious accessing?)
I read here that 1. is the suggested way but I did not understand what needs to be done with regards to mapping the components. You cannot JSON.stringify the component property of the route because its a function. Let have a router snippet example to work with:
...ANSWER
Answered 2022-Mar-11 at 10:27never mind, found solution here. To give more context:
Save the string part of the component into a map, retrieve the strings back and pass to the creation of the function at the client. Then attach function to route. It did not occur immediately to me to separate concern and not handle the component in its entirety.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-element-admin-site
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page