Vue background dynamically generates routes

clipboard.png


this.$router.addRoutes

json component: "Login" component: Login

import Login

clipboard.png
addRoutes

clipboard.png

Don"t you add on the login page

Mar.28,2021

the front end just returns a route name in the background of the incoming component on the page. The name should be the same as the incoming component name


pass an array

this.$router.addRoutes([
    {...}
]);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3716e-2c074.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3716e-2c074.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?