release v2.0.0 #4
|
@ -33,8 +33,10 @@ interface Backend {
|
||||||
export { Backend };
|
export { Backend };
|
||||||
|
|
||||||
function setPermissions(object: FG_Plugin.PluginRouteConfig) {
|
function setPermissions(object: FG_Plugin.PluginRouteConfig) {
|
||||||
if (object.route.meta === undefined) object.route.meta = {};
|
if (object.permissions !== undefined) {
|
||||||
object.route.meta['permissions'] = object.permissions;
|
if (object.route.meta === undefined) object.route.meta = {};
|
||||||
|
object.route.meta['permissions'] = object.permissions;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function convertRoutes(parent: RouteRecordRaw, children?: FG_Plugin.PluginRouteConfig[]) {
|
function convertRoutes(parent: RouteRecordRaw, children?: FG_Plugin.PluginRouteConfig[]) {
|
||||||
|
|
Loading…
Reference in New Issue