Merge "fix: fix select static router"

This commit is contained in:
Zuul 2022-09-28 12:22:31 +00:00 committed by Gerrit Code Review
commit 4412b40e1d

View File

@ -38,6 +38,7 @@ export class StaticRouteStore extends Base {
const { routes = [] } = data; const { routes = [] } = data;
routes.forEach((it) => { routes.forEach((it) => {
it.router_id = id; it.router_id = id;
it.id = `${it.destination} - ${it.nexthop}`;
}); });
this.list.update({ this.list.update({
data: routes, data: routes,