fix: fix select static router

Fix select static router in the static routers tab in the router detail page, add a mock id.

Closes-Bug: #1991086
Change-Id: I2598091580d67afb3bc16f6fd726ab1325025114
This commit is contained in:
Jingwei.Zhang 2022-09-28 17:51:55 +08:00
parent cd72ae0ae1
commit a6a730f7e5

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,