Skip to main content
Version: 3.6

Destination 跳转页面

1. 结构声明

class Destination extends LogicItem {
viewNamespace: string;
viewName: string;
arguments: Array<Argument>;
target: '_self' | '_blank' | '_parent' | '_top' = '_self';
anchor: Anchor;
}

2. 节点示例

(1) 示例

AST 如下:

{
"concept": "Destination",
"viewNamespace": "app.frontendTypes.pc.frontends.pc.views.dashboard.views",
"viewName": "productList",
"arguments": [],
"target": "_self",
"anchor": {
"concept": "Anchor",
"expression": {
"concept": "StringLiteral",
"value": "标题1"
}
}
}

对应的代码如下:

nasl::ui::destination(app::frontendTypes::pc::frontends::pc::views::dashboard::views::productList)