mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-10-15 03:32:11 +08:00
docs: 更新w文档
This commit is contained in:
parent
5ecab4524d
commit
329b41737d
@ -70,6 +70,13 @@ plugin.applyPlugins({
|
|||||||
|
|
||||||
Fes.js 路由基于 [Vue Router 4.0](https://next.router.vuejs.org/introduction.html),想了解更多的同学可以看看官方文档。
|
Fes.js 路由基于 [Vue Router 4.0](https://next.router.vuejs.org/introduction.html),想了解更多的同学可以看看官方文档。
|
||||||
|
|
||||||
|
### getRouter
|
||||||
|
返回当前 `router` 实例。
|
||||||
|
```js
|
||||||
|
import { getRouter } from "@fesjs/fes";
|
||||||
|
const router = getRouter();
|
||||||
|
router.push();
|
||||||
|
```
|
||||||
|
|
||||||
### useRoute
|
### useRoute
|
||||||
返回当前 `route` 实例,相当于在模板内使用 `$route`。必须在 `setup` 函数内调用。
|
返回当前 `route` 实例,相当于在模板内使用 `$route`。必须在 `setup` 函数内调用。
|
||||||
|
Loading…
x
Reference in New Issue
Block a user