Skip to content

Commit ee258ec

Browse files
committed
use app.router to navigate
1 parent c6d4e91 commit ee258ec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/webview.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,8 @@ class DevDocsDesktop {
107107
}
108108

109109
navigate(path) {
110-
const pathKey = path.replace('home', '')
111-
const element = this.query(`a[href="/${pathKey}"]`)
112-
113-
element && element.click()
110+
const route = path.replace('home', '')
111+
app.router.show(`/${route}`)
114112
}
115113
}
116114

0 commit comments

Comments
 (0)