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
(cherry picked from commit a6a730f7e5)
This commit is contained in:
Jingwei.Zhang
2022-09-28 17:51:55 +08:00
parent a2ad05b749
commit ff5c76156a

View File

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