1# arkui子系统ChangeLog
2
3## cl.arkui.1 NavPathStack类中的方法名称变更
4
5**关键接口/组件变更**
6
7[NavPathStack](../../../application-dev/reference/arkui-ts/ts-basic-components-navigation.md#navpathstack10)
8|  变更前   | 变更后  |
9|  ----  | ----  |
10| push  | pushPath |
11| pushName  | pushNameByPath |
12| popTo| PopToName |
13
14**变更影响**
15
16更新4.0.10.x SDK之后,如果代码未变更方法名称,将出现编译报错。
17Property 'push' does not exist on type 'NavPathStack'.
18Property 'pushName' does not exist on type 'NavPathStack'.
19Property 'pop' does not exist on type 'NavPathStack'.
20
21**适配指导**
22
23需更新应用代码
24
25```ts
26navPathStack = new NavPathStack();
27this.navPathStack.push(...)
28this.navPathStack.pushPath(...)
29
30this.navPathStack.pushName('navidesnation_add',this.value)
31this.navPathStack.pushPathByName('navidesnation_add',this.value)
32
33this.navPathStack.pop('navidesnation_add')
34this.navPathStack.popToName('navidesnation_add')
35```